Add span_body

This commit is contained in:
Vinnie Falco
2017-07-08 18:47:33 -07:00
parent c9908eada0
commit 37110f2d04
10 changed files with 264 additions and 3 deletions

View File

@@ -56,10 +56,10 @@ public:
private:
// Send a client error response
http::response<http::string_view_body>
http::response<http::span_body<char const>>
client_error(http::status result, beast::string_view text)
{
http::response<http::string_view_body> res{result, 11};
http::response<http::span_body<char const>> res{result, 11};
res.set(http::field::server, BEAST_VERSION_STRING);
res.set(http::field::content_type, "text/plain");
res.set(http::field::connection, "close");