From cbea1175ff481dcf45a0c837c95b9a3162518026 Mon Sep 17 00:00:00 2001 From: James Yonan Date: Mon, 1 Jun 2015 14:50:51 -0600 Subject: [PATCH] Added HTTP::Request::to_string_compact() method. --- openvpn/http/request.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openvpn/http/request.hpp b/openvpn/http/request.hpp index 7be6d1a1..ac1392c4 100644 --- a/openvpn/http/request.hpp +++ b/openvpn/http/request.hpp @@ -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;