Documentation work

This commit is contained in:
Vinnie Falco
2017-07-20 08:12:19 -07:00
parent 38c36ac655
commit cff5be3837
31 changed files with 510 additions and 353 deletions
+2 -2
View File
@@ -29,9 +29,9 @@ int main()
req.method(beast::http::verb::get);
req.target("/");
req.version = 11;
req.replace("Host", host + ":" +
req.insert(beast::http::field::host, host + ":" +
boost::lexical_cast<std::string>(sock.remote_endpoint().port()));
req.replace("User-Agent", "Beast");
req.insert(beast::http::field::user_agent, "Beast");
req.prepare();
beast::http::write(sock, req);