aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_upstream.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-05-23 14:54:58 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-05-23 14:54:58 +0000
commit6f134cc2751846c7fb64e8862dfe8d57185872af (patch)
treedc9bb5e6acdc1bc5355539a9d7f73c01c83b09c3 /src/http/ngx_http_upstream.h
parente425c20bbe6b401f1f816fded996543212e08b0c (diff)
downloadnginx-release-0.3.47.tar.gz
nginx-release-0.3.47.zip
nginx-0.3.47-RELEASE importrelease-0.3.47
*) Feature: the "upstream" directive. *) Change: now the "\" escape symbol in the "\"" and "\'" pairs in the SSI command is always removed.
Diffstat (limited to 'src/http/ngx_http_upstream.h')
-rw-r--r--src/http/ngx_http_upstream.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h
index e61c0bcc0..f8668307a 100644
--- a/src/http/ngx_http_upstream.h
+++ b/src/http/ngx_http_upstream.h
@@ -42,10 +42,26 @@ typedef struct {
typedef struct {
ngx_hash_t headers_in_hash;
+ ngx_array_t upstreams;
+ /* ngx_http_upstream_srv_conf_t */
} ngx_http_upstream_main_conf_t;
typedef struct {
+ ngx_peers_t *peers;
+
+ ngx_array_t *servers;
+
+ ngx_str_t host;
+ ngx_str_t file_name;
+ ngx_uint_t line;
+ in_port_t port;
+
+ ngx_uint_t balanced; /* unsigned balanced:1; */
+} ngx_http_upstream_srv_conf_t;
+
+
+typedef struct {
ngx_msec_t connect_timeout;
ngx_msec_t send_timeout;
ngx_msec_t read_timeout;
@@ -199,6 +215,8 @@ struct ngx_http_upstream_s {
void ngx_http_upstream_init(ngx_http_request_t *r);
+ngx_http_upstream_srv_conf_t *ngx_http_upstream_add(ngx_conf_t *cf,
+ ngx_url_t *u);
extern ngx_module_t ngx_http_upstream_module;