aboutsummaryrefslogtreecommitdiffstats
path: root/include/http.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/http.h')
-rw-r--r--include/http.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/http.h b/include/http.h
index 7e6d9d970..5cfd4b396 100644
--- a/include/http.h
+++ b/include/http.h
@@ -49,6 +49,10 @@ typedef enum {
HTTP_REQ_POST = 3
} HTTP_REQ_TYPE;
+enum { /* put flag values into an enum, so that gdb can display them */
+ HTTP_FLAG_TRY_PROXY = 1
+};
+
struct http_context {
int initialized;
unsigned int status_code;
@@ -61,6 +65,7 @@ struct http_context {
HTTP_REQ_TYPE req_type;
byte *buffer; /* line buffer */
unsigned buffer_size;
+ unsigned int flags;
};
typedef struct http_context *HTTP_HD;