forked from boostorg/beast
Refactor HTTP identifier names (API Change):
fix #171 Several names and HTTP identifiers are renamed to be more consistent, self-explanatory, and concise: * "Fields" is a collection of HTTP header fields (rfc7230 section 3.2) * "Header" is the Start Line plus Fields. Another way to look at it is, the HTTP message minus the body. * `basic_fields` replaces `basic_headers` * `fields` replaces `headers` * `Fields` replaces `Headers` in template parameter lists * `header` replaces `message_headers` * `header::fields` replaces `message_headers::fields` The changes are cosmetic and do not affect run-time behavior.
This commit is contained in:
@@ -133,15 +133,15 @@ public:
|
||||
|
||||
struct identity
|
||||
{
|
||||
template<class Body, class Headers>
|
||||
template<class Body, class Fields>
|
||||
void
|
||||
operator()(http::message<true, Body, Headers>&)
|
||||
operator()(http::message<true, Body, Fields>&)
|
||||
{
|
||||
}
|
||||
|
||||
template<class Body, class Headers>
|
||||
template<class Body, class Fields>
|
||||
void
|
||||
operator()(http::message<false, Body, Headers>&)
|
||||
operator()(http::message<false, Body, Fields>&)
|
||||
{
|
||||
}
|
||||
};
|
||||
@@ -188,11 +188,11 @@ public:
|
||||
req.method = "GET";
|
||||
req.url = "/";
|
||||
req.version = 11;
|
||||
req.headers.insert("Host", "localhost");
|
||||
req.headers.insert("Upgrade", "websocket");
|
||||
req.headers.insert("Connection", "upgrade");
|
||||
req.headers.insert("Sec-WebSocket-Key", "dGhlIHNhbXBsZSBub25jZQ==");
|
||||
req.headers.insert("Sec-WebSocket-Version", "13");
|
||||
req.fields.insert("Host", "localhost");
|
||||
req.fields.insert("Upgrade", "websocket");
|
||||
req.fields.insert("Connection", "upgrade");
|
||||
req.fields.insert("Sec-WebSocket-Key", "dGhlIHNhbXBsZSBub25jZQ==");
|
||||
req.fields.insert("Sec-WebSocket-Version", "13");
|
||||
stream<test::fail_stream<
|
||||
test::string_stream>> ws(n, ios_, "");
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user