summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_event_proxy_handler.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-03-20 16:09:44 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-03-20 16:09:44 +0000
commitdc479b4d98d5b65b78689c5282a31c70efadd928 (patch)
tree7caf32d89eec03484b14ebe74dfefd2a80c8fa02 /src/http/modules/ngx_http_event_proxy_handler.h
parent90ace68b69606b885578686e19d499a50d5e80b7 (diff)
downloadnginx-dc479b4d98d5b65b78689c5282a31c70efadd928.tar.gz
nginx-dc479b4d98d5b65b78689c5282a31c70efadd928.tar.bz2
nginx-0.0.1-2003-03-20-19:09:44 import
Diffstat (limited to 'src/http/modules/ngx_http_event_proxy_handler.h')
-rw-r--r--src/http/modules/ngx_http_event_proxy_handler.h52
1 files changed, 51 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_event_proxy_handler.h b/src/http/modules/ngx_http_event_proxy_handler.h
index 0a438044a..60e1e33cc 100644
--- a/src/http/modules/ngx_http_event_proxy_handler.h
+++ b/src/http/modules/ngx_http_event_proxy_handler.h
@@ -20,6 +20,41 @@ typedef struct {
} ngx_http_proxy_loc_conf_t;
+typedef struct {
+ ngx_str_t host;
+ ngx_str_t uri;
+ ngx_str_t host_header;
+ ngx_str_t port_name;
+ int port;
+} ngx_http_proxy_upstream_url_t;
+
+
+typedef struct {
+ struct sockaddr_in;
+ ngx_str_t name;
+ time_t access;
+ int fails;
+} ngx_http_proxy_upstream_t;
+
+
+typedef struct {
+ int amount;
+ ngx_http_proxy_upstream_t *upstreams;
+} ngx_http_proxy_upstream_farm_t;
+
+
+#if 0
+/* location /one/ { proxy_pass http://localhost:9000/two/; } */
+
+typedef struct {
+ /* "/one/" */
+ /* "http://localhost:9000/two/" */
+ /* "/two/" */
+ *upstream_farm;
+} ngx_http_proxy_pass_t;
+#endif
+
+
typedef struct ngx_http_proxy_ctx_s ngx_http_proxy_ctx_t;
struct ngx_http_proxy_ctx_s {
@@ -30,9 +65,16 @@ struct ngx_http_proxy_ctx_s {
int hunk_n;
- ngx_connection_t *connection;
+ ngx_connection_t *connection;
+ ngx_http_request_t *request;
ngx_http_proxy_headers_in_t *headers_in;
+ ngx_http_proxy_upstream_farm_t *upstream;
+ int cur_upstream;
+ int upstreams;
+
+ ngx_log_t *log;
+
ngx_hunk_t *header_in;
int state;
int status;
@@ -43,6 +85,14 @@ struct ngx_http_proxy_ctx_s {
};
+typedef struct {
+ char *action;
+ char *upstream;
+ char *client;
+ char *url;
+} ngx_http_proxy_log_ctx_t;
+
+
extern ngx_module_t ngx_http_proxy_module;