X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/94dc9d7d8bbf2f1351db26e4532327c6784ead96..6520109c98500cc1ca6d6b581cc0980531ef8f83:/methods/http.h diff --git a/methods/http.h b/methods/http.h index 541e2952c..ceee36cbe 100644 --- a/methods/http.h +++ b/methods/http.h @@ -3,7 +3,7 @@ // $Id: http.h,v 1.12 2002/04/18 05:09:38 jgg Exp $ /* ###################################################################### - HTTP Aquire Method - This is the HTTP aquire method for APT. + HTTP Acquire Method - This is the HTTP aquire method for APT. ##################################################################### */ /*}}}*/ @@ -99,6 +99,7 @@ struct ServerState enum {Chunked,Stream,Closes} Encoding; enum {Header, Data} State; bool Persistent; + string Location; // This is a Persistent attribute of the server itself. bool Pipeline; @@ -133,6 +134,7 @@ class HttpMethod : public pkgAcqMethod bool Flush(ServerState *Srv); bool ServerDie(ServerState *Srv); int DealWithHeaders(FetchResult &Res,ServerState *Srv); + bool AutoDetectProxy(); virtual bool Fetch(FetchItem *); virtual bool Configuration(string Message); @@ -143,6 +145,9 @@ class HttpMethod : public pkgAcqMethod static time_t FailTime; static void SigTerm(int); + string NextURI; + string AutoDetectProxyCmd; + public: friend class ServerState; @@ -158,6 +163,4 @@ class HttpMethod : public pkgAcqMethod }; }; -URI Proxy; - #endif