refine the usage of build options
This commit is contained in:
@@ -124,7 +124,7 @@ public:
|
||||
return Header(headers::kAccept, content_types);
|
||||
}
|
||||
|
||||
#if WEBCC_ENABLE_GZIP
|
||||
#ifdef 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();
|
||||
|
||||
#if WEBCC_ENABLE_GZIP
|
||||
#ifdef WEBCC_ENABLE_GZIP
|
||||
|
||||
// Compress the body data (only for string body).
|
||||
// NOTE:
|
||||
@@ -220,7 +220,7 @@ private:
|
||||
// Persistent connection.
|
||||
bool keep_alive_ = true;
|
||||
|
||||
#if WEBCC_ENABLE_GZIP
|
||||
#ifdef WEBCC_ENABLE_GZIP
|
||||
bool gzip_ = false;
|
||||
#endif // WEBCC_ENABLE_GZIP
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user