1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- // -*- mode: cpp; mode: fold -*-
- // Description /*{{{*/// $Id: http.h,v 1.12 2002/04/18 05:09:38 jgg Exp $
- // $Id: http.h,v 1.12 2002/04/18 05:09:38 jgg Exp $
- /* ######################################################################
- HTTP Acquire Method - This is the HTTP acquire method for APT.
- ##################################################################### */
- /*}}}*/
- #ifndef APT_HTTP_H
- #define APT_HTTP_H
- #include <apt-pkg/strutl.h>
- #include <string>
- #include <sys/time.h>
- #include <iostream>
- #include "server.h"
- using std::cout;
- using std::endl;
- class FileFd;
- class HttpMethod;
- class Hashes;
- class HttpMethod : public ServerMethod
- {
- 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;
- protected:
- std::string AutoDetectProxyCmd;
- public:
- friend struct HttpServerState;
- int Loop();
- explicit HttpMethod(std::string &&pProg);
- };
- #endif
|