mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 12:12:15 +02:00
Added HTTP::Request::to_string_compact() method.
This commit is contained in:
parent
fe794f5084
commit
cbea1175ff
@ -58,6 +58,13 @@ namespace openvpn {
|
||||
return out.str();
|
||||
}
|
||||
|
||||
std::string to_string_compact() const
|
||||
{
|
||||
std::ostringstream out;
|
||||
out << method << ' ' << uri << " HTTP/" << http_version_major << '.' << http_version_minor;
|
||||
return out.str();
|
||||
}
|
||||
|
||||
std::string method;
|
||||
std::string uri;
|
||||
int http_version_major;
|
||||
|
Loading…
Reference in New Issue
Block a user