diff options
Diffstat (limited to 'src/HttpRequest.h')
| -rw-r--r-- | src/HttpRequest.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/HttpRequest.h b/src/HttpRequest.h index 3baac4bb..34a52e3b 100644 --- a/src/HttpRequest.h +++ b/src/HttpRequest.h @@ -65,14 +65,9 @@ private: std::shared_ptr<Segment> segment_; - bool contentEncodingEnabled_; - - std::string userAgent_; - - std::vector<std::string> headers_; + std::shared_ptr<Request> proxyRequest_; - // If true, metalink content types are sent in Accept header field. - bool acceptMetalink_; + std::unique_ptr<AuthConfig> authConfig_; CookieStorage* cookieStorage_; @@ -80,14 +75,6 @@ private: const Option* option_; - std::unique_ptr<AuthConfig> authConfig_; - - std::shared_ptr<Request> proxyRequest_; - - bool noCache_; - - bool acceptGzip_; - // Historically, aria2 did not specify end byte marker unless http // pipelining is enabled. Sometimes end byte is known because the // segment/piece ahead of this request was already acquired. In this @@ -97,9 +84,23 @@ private: // bytes and it is also true if it is used via HTTP proxy. int64_t endOffsetOverride_; + std::vector<std::string> headers_; + + std::string userAgent_; + std::string ifModSinceHeader_; + bool contentEncodingEnabled_; + + // If true, metalink content types are sent in Accept header field. + bool acceptMetalink_; + + bool noCache_; + + bool acceptGzip_; + std::pair<std::string, std::string> getProxyAuthString() const; + public: HttpRequest(); ~HttpRequest(); |
