Refine FieldsReader concept (API Change)

* FieldsReader now requires chunked() and keep_alive()

* serializer logic calls into the reader to calculate
  the message metadata

* Removed some of the previous requirements of FieldsReader

Actions Required:

* Implement chunked() and keep_alive() for user defined FieldsReader types.
This commit is contained in:
Vinnie Falco
2017-07-20 08:15:27 -07:00
parent 087844c487
commit f9f6e1e0cc
13 changed files with 167 additions and 138 deletions
+1 -1
View File
@@ -1004,7 +1004,7 @@ public:
}
};
// wrong version
check(error::handshake_failed,
check(http::error::end_of_stream,
"GET / HTTP/1.0\r\n"
"Host: localhost:80\r\n"
"Upgrade: WebSocket\r\n"