forked from boostorg/beast
Use field in basic_fields and call sites
This commit is contained in:
1 parent
cfd6d146a8
commit
b5f6cc1724
18 files changed
+220
-69
No files matched your search
@@ -38,9 +38,9 @@ int main()
|
||||
req.method(beast::http::verb::get);
|
||||
req.target("/");
|
||||
req.version = 11;
|
||||
req.insert("Host", host + ":" +
|
||||
req.insert(beast::http::field::host, host + ":" +
|
||||
boost::lexical_cast<std::string>(sock.remote_endpoint().port()));
|
||||
req.insert("User-Agent", "Beast");
|
||||
req.insert(beast::http::field::user_agent, "Beast");
|
||||
req.prepare();
|
||||
beast::http::write(stream, req);
|
||||
|
||||
|
||||
Reference in new issue
Block a user