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
@@ -9,10 +9,8 @@
// The default port number should be 8000.
void Test() {
webcc::HttpRequest request;
request.set_method(webcc::kHttpGet);
request.set_url("/index.html");
request.set_host("localhost", "8000");
webcc::HttpRequest request(webcc::kHttpGet, "/index.html", "localhost",
"8000");
request.Make();
webcc::HttpClient client;