Allow to set buffer size for client; don't auto adjust reading buffer size; refine the global definitions.
This commit is contained in:
@@ -4,19 +4,6 @@ namespace webcc {
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
// NOTE: Field names are case-insensitive.
|
||||
// See https://stackoverflow.com/a/5259004 for more details.
|
||||
const std::string kHost = "Host";
|
||||
const std::string kContentType = "Content-Type";
|
||||
const std::string kContentLength = "Content-Length";
|
||||
const std::string kTransferEncoding = "Transfer-Encoding";
|
||||
const std::string kUserAgent = "User-Agent";
|
||||
|
||||
const std::string kAppJsonUtf8 = "application/json; charset=utf-8";
|
||||
|
||||
const std::string kHttpPort = "80";
|
||||
const std::string kHttpSslPort = "443";
|
||||
|
||||
const std::string kHttpHead = "HEAD";
|
||||
const std::string kHttpGet = "GET";
|
||||
const std::string kHttpPost = "POST";
|
||||
|
||||
Reference in New Issue
Block a user