diff options
Diffstat (limited to 'methods/http.h')
-rw-r--r-- | methods/http.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/methods/http.h b/methods/http.h index 203ea9fd4..3b491dfda 100644 --- a/methods/http.h +++ b/methods/http.h @@ -17,7 +17,7 @@ #include <sys/time.h> #include <iostream> -#include "server.h" +#include "basehttp.h" using std::cout; using std::endl; @@ -26,17 +26,18 @@ class FileFd; class HttpMethod; class Hashes; -class HttpMethod : public ServerMethod +class HttpMethod : public BaseHttpMethod { public: virtual void SendReq(FetchItem *Itm) APT_OVERRIDE; virtual std::unique_ptr<ServerState> CreateServerState(URI const &uri) APT_OVERRIDE; virtual void RotateDNS() APT_OVERRIDE; - virtual DealWithHeadersResult DealWithHeaders(FetchResult &Res) APT_OVERRIDE; + virtual DealWithHeadersResult DealWithHeaders(FetchResult &Res, RequestState &Req) APT_OVERRIDE; protected: std::string AutoDetectProxyCmd; + FileFd *File; public: friend struct HttpServerState; |