0
0
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:
James Yonan 2015-06-01 14:50:51 -06:00
parent fe794f5084
commit cbea1175ff

View File

@ -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;