HTTP improvements:

* Increased code coverage

* New Body concepts:
    is_Body
    is_ReadableBody
    is_WritableBody
This commit is contained in:
Vinnie Falco committed 2017-07-20 08:12:07 -07:00
1 parent 039244cda4
commit 19256b85f0
16 files changed
+206 -84

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ class stream<NextLayer>::accept_op
struct data
{
stream<NextLayer>& ws;
http::request_v1<http::empty_body> req;
http::request_v1<http::string_body> req;
Handler h;
bool cont;
int state = 0;
+1 -1
View File
@@ -253,7 +253,7 @@ accept(ConstBufferSequence const& buffers, error_code& ec)
stream_.buffer().commit(buffer_copy(
stream_.buffer().prepare(
buffer_size(buffers)), buffers));
http::request_v1<http::empty_body> m;
http::request_v1<http::string_body> m;
http::read(next_layer(), stream_.buffer(), m, ec);
if(ec)
return;