forked from boostorg/beast
Remove HTTP header aliases (API Change):
fix #382 * request_header and response_header are removed
This commit is contained in:
1 parent
d84713ece9
commit
b9bdb1bbbc
9 files changed
+27
-79
No files matched your search
@@ -39,7 +39,7 @@ class stream<NextLayer>::response_op
|
||||
{
|
||||
bool cont;
|
||||
stream<NextLayer>& ws;
|
||||
http::response_header res;
|
||||
http::header<false, http::fields> res;
|
||||
int state = 0;
|
||||
|
||||
template<class Fields, class Decorator>
|
||||
|
||||
@@ -282,7 +282,7 @@ build_response(request_type const& req,
|
||||
template<class NextLayer>
|
||||
void
|
||||
stream<NextLayer>::
|
||||
do_response(http::response_header const& res,
|
||||
do_response(http::header<false> const& res,
|
||||
detail::sec_ws_key_type const& key, error_code& ec)
|
||||
{
|
||||
bool const success = [&]()
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace beast {
|
||||
namespace websocket {
|
||||
|
||||
/// The type of object holding HTTP Upgrade requests
|
||||
using request_type = http::request_header;
|
||||
using request_type = http::header<true, http::fields>;
|
||||
|
||||
/// The type of object holding HTTP Upgrade responses
|
||||
using response_type =
|
||||
@@ -2981,7 +2981,7 @@ private:
|
||||
Decorator const& decorator);
|
||||
|
||||
void
|
||||
do_response(http::response_header const& resp,
|
||||
do_response(http::header<false> const& resp,
|
||||
detail::sec_ws_key_type const& key, error_code& ec);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user