comparison src/http/modules/proxy/ngx_http_proxy_handler.h @ 137:2a615b036870

nginx-0.0.1-2003-10-03-19:50:53 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 03 Oct 2003 15:50:53 +0000
parents da00cde00e8a
children 3b168e12bd2d
comparison
equal deleted inserted replaced
136:da00cde00e8a 137:2a615b036870
7 #include <ngx_event.h> 7 #include <ngx_event.h>
8 #include <ngx_http.h> 8 #include <ngx_http.h>
9 9
10 10
11 typedef struct { 11 typedef struct {
12 ngx_msec_t connect_timeout;
12 ngx_msec_t send_timeout; 13 ngx_msec_t send_timeout;
14 ssize_t header_size;
15 ngx_msec_t read_timeout;
16
13 ngx_peers_t *peers; 17 ngx_peers_t *peers;
14 } ngx_http_proxy_loc_conf_t; 18 } ngx_http_proxy_loc_conf_t;
19
20
21 typedef struct {
22 ngx_table_elt_t *date;
23 ngx_table_elt_t *server;
24 ngx_table_elt_t *connection;
25 ngx_table_elt_t *content_type;
26 ngx_table_elt_t *content_length;
27 ngx_table_elt_t *last_modified;
28
29 ngx_table_t *headers;
30 } ngx_http_proxy_headers_in_t;
15 31
16 32
17 typedef struct ngx_http_proxy_ctx_s ngx_http_proxy_ctx_t; 33 typedef struct ngx_http_proxy_ctx_s ngx_http_proxy_ctx_t;
18 34
19 struct ngx_http_proxy_ctx_s { 35 struct ngx_http_proxy_ctx_s {
20 ngx_peer_connection_t upstream; 36 ngx_peer_connection_t upstream;
21 ngx_peer_t *peer; 37 ngx_peer_t *peer;
22 38
23 ngx_connection_t *connection; 39 ngx_http_request_t *request;
40 ngx_http_proxy_loc_conf_t *lcf;
41 ngx_http_proxy_headers_in_t headers_in;
24 42
25 ngx_http_request_t *request; 43 ngx_hunk_t *header_in;
26 44 int status;
27 ngx_http_proxy_loc_conf_t *lcf; 45 ngx_str_t status_line;
28 46
29 ngx_chain_t *work_request_hunks; 47 ngx_chain_t *work_request_hunks;
30 ngx_chain_t *request_hunks; 48 ngx_chain_t *request_hunks;
49
50 int method;
51 ngx_str_t uri;
52 int location_len;
53 ngx_str_t host_header;
54
55 char *status_start;
56 char *status_end;
57 int status_count;
58 int state;
31 59
32 char *action; 60 char *action;
33 }; 61 };
34 62
35 63
64 #define NGX_HTTP_PROXY_PARSE_NO_HEADER 10
65
66
36 #endif /* _NGX_HTTP_PROXY_HANDLER_H_INCLUDED_ */ 67 #endif /* _NGX_HTTP_PROXY_HANDLER_H_INCLUDED_ */