return port value parsed without int conversion

This commit is contained in:
yggverse 2024-08-16 08:59:50 +03:00
parent 2986a475c1
commit 107ab08784
2 changed files with 6 additions and 9 deletions

View File

@ -52,6 +52,11 @@ string Request::get_host()
return host; return host;
} }
string Request::get_port()
{
return port;
}
string Request::get_path() string Request::get_path()
{ {
return path; return path;
@ -62,13 +67,6 @@ string Request::get_query()
return path; return path;
} }
int Request::get_port()
{
return stoi(
port
);
}
// Private helpers // Private helpers
void Request::parse() void Request::parse()
{ {

View File

@ -29,10 +29,9 @@ namespace app::browser::main::tab::page::navbar
std::string get_scheme(); std::string get_scheme();
std::string get_host(); std::string get_host();
std::string get_port();
std::string get_path(); std::string get_path();
std::string get_query(); std::string get_query();
int get_port();
}; };
} }