summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-11-27 13:34:13 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-11-27 13:34:13 +0000
commit96dd8af8e6e1f5525cce3dcb33c040a73e67f2c6 (patch)
tree7cfd92bc5c8894795bdb19a9ddf183538000e067 /src/http/ngx_http_upstream.h
parent9683528550836a35cb24c61bf3fd99175bcbd82f (diff)
downloadnginx-96dd8af8e6e1f5525cce3dcb33c040a73e67f2c6.tar.gz
nginx-96dd8af8e6e1f5525cce3dcb33c040a73e67f2c6.tar.bz2
proxy_pass variables support
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_upstream.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h
index d95399f45..83953626b 100644
--- a/src/http/ngx_http_upstream.h
+++ b/src/http/ngx_http_upstream.h
@@ -138,9 +138,6 @@ typedef struct {
ngx_array_t *pass_headers;
ngx_str_t schema;
- ngx_str_t uri;
- ngx_str_t location;
- ngx_str_t url; /* used in proxy_rewrite_location */
ngx_array_t *store_lengths;
ngx_array_t *store_values;
@@ -199,6 +196,15 @@ typedef struct {
} ngx_http_upstream_headers_in_t;
+typedef struct {
+ ngx_str_t host;
+ in_port_t port;
+ ngx_uint_t naddrs;
+ in_addr_t *addrs;
+ ngx_resolver_ctx_t *ctx;
+} ngx_http_upstream_resolved_t;
+
+
struct ngx_http_upstream_s {
ngx_peer_connection_t peer;
@@ -213,6 +219,8 @@ struct ngx_http_upstream_s {
ngx_http_upstream_headers_in_t headers_in;
+ ngx_http_upstream_resolved_t *resolved;
+
ngx_buf_t buffer;
size_t length;
@@ -235,10 +243,10 @@ struct ngx_http_upstream_s {
ngx_msec_t timeout;
- ngx_str_t method;
-
ngx_http_upstream_state_t *state;
+ ngx_str_t method;
+ ngx_str_t schema;
ngx_str_t uri;
ngx_http_cleanup_pt *cleanup;
@@ -246,6 +254,7 @@ struct ngx_http_upstream_s {
unsigned store:1;
unsigned cacheable:1;
unsigned accel:1;
+ unsigned ssl:1;
unsigned buffering:1;