Add buffer size to HttpClientSession

This commit is contained in:
Chunting Gu
2019-03-19 12:27:25 +08:00
parent bc586c3ea0
commit 53fb2a92c9
10 changed files with 92 additions and 55 deletions
+3 -3
View File
@@ -11,9 +11,6 @@ namespace webcc {
const char* const kCRLF = "\r\n";
// Default buffer size for socket reading.
const std::size_t kBufferSize = 1024;
const std::size_t kInvalidLength = std::string::npos;
// Default timeout for reading response.
@@ -24,6 +21,9 @@ const int kMaxReadSeconds = 30;
// when dumped/logged.
const std::size_t kMaxDumpSize = 2048;
// Default buffer size for socket reading.
const std::size_t kBufferSize = 1024;
// Default ports.
const char* const kPort80 = "80";
const char* const kPort443 = "443";