Allow to set buffer size for client; don't auto adjust reading buffer size; refine the global definitions.

This commit is contained in:
Chunting Gu
2019-02-11 12:46:27 +08:00
parent ae9d4efcf1
commit 3e60c76da1
47 changed files with 559 additions and 423 deletions
+2 -4
View File
@@ -11,11 +11,9 @@
// The default port number should be 8000.
void Test(boost::asio::io_context& io_context) {
webcc::HttpRequestPtr request(new webcc::HttpRequest());
webcc::HttpRequestPtr request = std::make_shared<webcc::HttpRequest>(
webcc::kHttpGet, "/index.html", "localhost", "8000");
request->set_method(webcc::kHttpGet);
request->set_url("/index.html");
request->set_host("localhost", "8000");
request->Make();
webcc::HttpAsyncClientPtr client(new webcc::HttpAsyncClient(io_context));