Refactor prepare (API Change)

This commit is contained in:
Vinnie Falco committed 2017-06-06 13:25:44 -07:00
1 parent 9fd307178f
commit 485a6e55ee
26 files changed
+543 -362

No files matched your search

+2 -2
View File
@@ -38,12 +38,12 @@ int main(int, char const*[])
auto ep = sock.remote_endpoint();
request<string_body> req;
req.method(verb::get);
req.target("/");
req.version = 11;
req.target("/");
req.insert("Host", host + std::string(":") +
boost::lexical_cast<std::string>(ep.port()));
req.insert("User-Agent", "beast/http");
prepare(req);
req.prepare();
write(sock, req);
response<string_body> res;
beast::multi_buffer b;