Use field in basic_fields and call sites

This commit is contained in:
Vinnie Falco committed 2017-07-20 08:12:18 -07:00
1 parent d5f22adeca
commit ca25eee0dd
18 files changed
+220 -69

No files matched your search

+3 -1
View File
@@ -559,6 +559,8 @@ struct message : header<isRequest, Fields>
The value of the Content-Length field will be unconditionally
set to the specified number of octets.
@para n The number of octets to set for the Content-Length field.
*/
void
content_length(std::uint64_t n);
@@ -575,7 +577,7 @@ struct message : header<isRequest, Fields>
req.version = 11;
req.method(verb::upgrade);
req.target("/");
req.insert("User-Agent", "Beast");
req.insert(field::user_agent, "Beast");
req.prepare(connection::close, connection::upgrade);
@endcode