Add span_body

This commit is contained in:
Vinnie Falco committed 2017-07-20 08:15:30 -07:00
1 parent c9908eada0
commit 37110f2d04
10 files changed
+264 -3

No files matched your search

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