fix build option issues; refine cmake

This commit is contained in:
Chunting Gu
2021-02-05 14:12:26 +08:00
parent 1c35b97654
commit 7f345b7a4e
26 changed files with 70 additions and 65 deletions
+3 -3
View File
@@ -124,7 +124,7 @@ public:
return Header(headers::kAccept, content_types);
}
#ifdef WEBCC_ENABLE_GZIP
#if WEBCC_ENABLE_GZIP
// Accept Gzip compressed response data or not.
RequestBuilder& AcceptGzip(bool gzip = true);
@@ -179,7 +179,7 @@ public:
// Add the `Date` header to the request.
RequestBuilder& Date();
#ifdef WEBCC_ENABLE_GZIP
#if WEBCC_ENABLE_GZIP
// Compress the body data (only for string body).
// NOTE:
@@ -220,7 +220,7 @@ private:
// Persistent connection.
bool keep_alive_ = true;
#ifdef WEBCC_ENABLE_GZIP
#if WEBCC_ENABLE_GZIP
bool gzip_ = false;
#endif // WEBCC_ENABLE_GZIP
};