summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_event_proxy_handler.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-12-06 16:32:33 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-12-06 16:32:33 +0000
commitef259d140f378be8d7936d04038354a93cccb461 (patch)
tree731e20f9427c961a2283bfd1c03f574fd7dffcf1 /src/http/modules/ngx_http_event_proxy_handler.h
parent6ed07e4f0640e1f1c9717fdaa952edf26faa86e0 (diff)
downloadnginx-ef259d140f378be8d7936d04038354a93cccb461.tar.gz
nginx-ef259d140f378be8d7936d04038354a93cccb461.tar.bz2
nginx-0.0.1-2002-12-06-19:32:33 import
Diffstat (limited to 'src/http/modules/ngx_http_event_proxy_handler.h')
-rw-r--r--src/http/modules/ngx_http_event_proxy_handler.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/http/modules/ngx_http_event_proxy_handler.h b/src/http/modules/ngx_http_event_proxy_handler.h
index 5dfd46733..ffc3a151c 100644
--- a/src/http/modules/ngx_http_event_proxy_handler.h
+++ b/src/http/modules/ngx_http_event_proxy_handler.h
@@ -7,19 +7,33 @@
#include <ngx_http.h>
+#define NGX_HTTP_PROXY_PARSE_NO_HEADER 20
+#define NGX_HTTP_PARSE_TOO_LONG_STATUS_LINE 21
+
typedef struct {
int dummy;
-} ngx_http_proxy_header_in_t;
+} ngx_http_proxy_headers_in_t;
-typedef struct {
+typedef struct ngx_http_proxy_ctx_s ngx_http_proxy_ctx_t;
+
+struct ngx_http_proxy_ctx_s {
ngx_chain_t *out;
- ngx_hunk_t *hunk;
int last_hunk;
ngx_array_t *hunks;
- ngx_http_proxy_header_in_t *header_in;
-} ngx_http_proxy_ctx_t;
+ int hunk_n;
+
+ ngx_http_proxy_headers_in_t *headers_in;
+
+ ngx_hunk_t *header_in;
+ int state;
+ int status;
+ int status_count;
+ char *status_text;
+ char *request_end;
+ int (*state_handler)(ngx_http_request_t *r, ngx_http_proxy_ctx_t *p);
+};
extern ngx_http_module_t ngx_http_proxy_module;