Add RestSslClient; add User-Agent header.

This commit is contained in:
Chunting Gu
2018-10-11 12:47:47 +08:00
parent b02ea902c9
commit d159ce46bf
26 changed files with 232 additions and 169 deletions
+4
View File
@@ -3,6 +3,8 @@
#include <string>
#include "webcc/version.h"
// -----------------------------------------------------------------------------
// Macros
@@ -38,9 +40,11 @@ const std::size_t kInvalidLength = std::string::npos;
// Default timeout for reading response.
const int kMaxReadSeconds = 30;
// HTTP headers.
extern const std::string kHost;
extern const std::string kContentType;
extern const std::string kContentLength;
extern const std::string kUserAgent;
extern const std::string kAppJsonUtf8;