Allow to set buffer size for client; don't auto adjust reading buffer size; refine the global definitions.
This commit is contained in:
@@ -37,10 +37,7 @@
|
||||
#include "webcc/logger.h"
|
||||
|
||||
void Test() {
|
||||
webcc::HttpRequest request;
|
||||
request.set_method(webcc::kHttpGet);
|
||||
request.set_url("/get");
|
||||
request.set_host("httpbin.org"/*, "80"*/);
|
||||
webcc::HttpRequest request(webcc::kHttpGet, "/get", "httpbin.org"/*, "80"*/);
|
||||
request.Make();
|
||||
|
||||
webcc::HttpClient client;
|
||||
|
||||
Reference in New Issue
Block a user