summaryrefslogtreecommitdiff
path: root/methods/http.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:19 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:19 +0000
commitf93d1355dd915fd5c197293ba0e62292ec15cb2d (patch)
tree78be0c02ba0ec102282e26e1b611b6f0f9ab25e5 /methods/http.h
parent0b5c85b5c9edc8cbd9a3962d412810354398b095 (diff)
Reorderd error handling
Author: jgg Date: 1999-12-09 03:45:56 GMT Reorderd error handling
Diffstat (limited to 'methods/http.h')
-rw-r--r--methods/http.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/methods/http.h b/methods/http.h
index 700587048..2098fc832 100644
--- a/methods/http.h
+++ b/methods/http.h
@@ -1,5 +1,5 @@
// -*- mode: cpp; mode: fold -*-
-// Description /*{{{*/// $Id: http.h,v 1.6 1998/12/10 05:39:56 jgg Exp $
+// Description /*{{{*/// $Id: http.h,v 1.7 1999/12/09 03:45:56 jgg Exp $
/* ######################################################################
HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -87,6 +87,7 @@ struct ServerState
bool HaveContent;
enum {Chunked,Stream,Closes} Encoding;
enum {Header, Data} State;
+ bool Pipeline;
HttpMethod *Owner;
@@ -99,7 +100,8 @@ struct ServerState
bool HeaderLine(string Line);
bool Comp(URI Other) {return Other.Host == ServerName.Host && Other.Port == ServerName.Port;};
void Reset() {Major = 0; Minor = 0; Result = 0; Size = 0; StartPos = 0;
- Encoding = Closes; time(&Date); ServerFd = -1;};
+ Encoding = Closes; time(&Date); ServerFd = -1;
+ Pipeline = true;};
int RunHeaders();
bool RunData();