mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
use local request parser
This commit is contained in:
parent
4da1e4d9c2
commit
75300eb45e
7 changed files with 82 additions and 87 deletions
|
|
@ -4,15 +4,35 @@
|
|||
#include <glibmm/i18n.h>
|
||||
#include <gtkmm/entry.h>
|
||||
|
||||
#include <regex>
|
||||
#include <string>
|
||||
|
||||
namespace app::browser::main::tab::data::navbar
|
||||
{
|
||||
class Request : public Gtk::Entry
|
||||
{
|
||||
private:
|
||||
|
||||
std::string scheme,
|
||||
host,
|
||||
port,
|
||||
path,
|
||||
query;
|
||||
|
||||
void parse();
|
||||
|
||||
public:
|
||||
|
||||
Request();
|
||||
|
||||
~Request();
|
||||
|
||||
std::string get_scheme();
|
||||
std::string get_host();
|
||||
std::string get_path();
|
||||
std::string get_query();
|
||||
|
||||
int get_port();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue