comparison src/http/ngx_http.h @ 692:6db6e93f55ee NGINX_1_3_9

nginx 1.3.9 *) Feature: support for chunked transfer encoding while reading client request body. *) Feature: the $request_time and $msec variables can now be used not only in the "log_format" directive. *) Bugfix: cache manager and cache loader processes might not be able to start if more than 512 listen sockets were used. *) Bugfix: in the ngx_http_dav_module.
author Igor Sysoev <http://sysoev.ru>
date Tue, 27 Nov 2012 00:00:00 +0400
parents d0f7a625f27c
children
comparison
equal deleted inserted replaced
691:acfd484db0ca 692:6db6e93f55ee
16 typedef struct ngx_http_request_s ngx_http_request_t; 16 typedef struct ngx_http_request_s ngx_http_request_t;
17 typedef struct ngx_http_upstream_s ngx_http_upstream_t; 17 typedef struct ngx_http_upstream_s ngx_http_upstream_t;
18 typedef struct ngx_http_cache_s ngx_http_cache_t; 18 typedef struct ngx_http_cache_s ngx_http_cache_t;
19 typedef struct ngx_http_file_cache_s ngx_http_file_cache_t; 19 typedef struct ngx_http_file_cache_s ngx_http_file_cache_t;
20 typedef struct ngx_http_log_ctx_s ngx_http_log_ctx_t; 20 typedef struct ngx_http_log_ctx_s ngx_http_log_ctx_t;
21 typedef struct ngx_http_chunked_s ngx_http_chunked_t;
21 22
22 typedef ngx_int_t (*ngx_http_header_handler_pt)(ngx_http_request_t *r, 23 typedef ngx_int_t (*ngx_http_header_handler_pt)(ngx_http_request_t *r,
23 ngx_table_elt_t *h, ngx_uint_t offset); 24 ngx_table_elt_t *h, ngx_uint_t offset);
24 typedef u_char *(*ngx_http_log_handler_pt)(ngx_http_request_t *r, 25 typedef u_char *(*ngx_http_log_handler_pt)(ngx_http_request_t *r,
25 ngx_http_request_t *sr, u_char *buf, size_t len); 26 ngx_http_request_t *sr, u_char *buf, size_t len);
47 48
48 struct ngx_http_log_ctx_s { 49 struct ngx_http_log_ctx_s {
49 ngx_connection_t *connection; 50 ngx_connection_t *connection;
50 ngx_http_request_t *request; 51 ngx_http_request_t *request;
51 ngx_http_request_t *current_request; 52 ngx_http_request_t *current_request;
53 };
54
55
56 struct ngx_http_chunked_s {
57 ngx_uint_t state;
58 off_t size;
59 off_t length;
52 }; 60 };
53 61
54 62
55 typedef struct { 63 typedef struct {
56 ngx_uint_t http_version; 64 ngx_uint_t http_version;
90 ngx_str_t *name, ngx_str_t *value); 98 ngx_str_t *name, ngx_str_t *value);
91 ngx_int_t ngx_http_arg(ngx_http_request_t *r, u_char *name, size_t len, 99 ngx_int_t ngx_http_arg(ngx_http_request_t *r, u_char *name, size_t len,
92 ngx_str_t *value); 100 ngx_str_t *value);
93 void ngx_http_split_args(ngx_http_request_t *r, ngx_str_t *uri, 101 void ngx_http_split_args(ngx_http_request_t *r, ngx_str_t *uri,
94 ngx_str_t *args); 102 ngx_str_t *args);
103 ngx_int_t ngx_http_parse_chunked(ngx_http_request_t *r, ngx_buf_t *b,
104 ngx_http_chunked_t *ctx);
95 105
96 106
97 ngx_int_t ngx_http_find_server_conf(ngx_http_request_t *r); 107 ngx_int_t ngx_http_find_server_conf(ngx_http_request_t *r);
98 void ngx_http_update_location_config(ngx_http_request_t *r); 108 void ngx_http_update_location_config(ngx_http_request_t *r);
99 void ngx_http_handler(ngx_http_request_t *r); 109 void ngx_http_handler(ngx_http_request_t *r);