comparison src/http/ngx_http.h @ 5121:c0f7b94e88ba

Preliminary experimental support for SPDY draft 2.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 20 Mar 2013 10:36:57 +0000
parents dcff052728ea
children 9d83ec073c51
comparison
equal deleted inserted replaced
5120:7956af6b6a02 5121:c0f7b94e88ba
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 typedef struct ngx_http_chunked_s ngx_http_chunked_t;
22 22
23 #if (NGX_HTTP_SPDY)
24 typedef struct ngx_http_spdy_stream_s ngx_http_spdy_stream_t;
25 #endif
26
23 typedef ngx_int_t (*ngx_http_header_handler_pt)(ngx_http_request_t *r, 27 typedef ngx_int_t (*ngx_http_header_handler_pt)(ngx_http_request_t *r,
24 ngx_table_elt_t *h, ngx_uint_t offset); 28 ngx_table_elt_t *h, ngx_uint_t offset);
25 typedef u_char *(*ngx_http_log_handler_pt)(ngx_http_request_t *r, 29 typedef u_char *(*ngx_http_log_handler_pt)(ngx_http_request_t *r,
26 ngx_http_request_t *sr, u_char *buf, size_t len); 30 ngx_http_request_t *sr, u_char *buf, size_t len);
27 31
33 #include <ngx_http_upstream.h> 37 #include <ngx_http_upstream.h>
34 #include <ngx_http_upstream_round_robin.h> 38 #include <ngx_http_upstream_round_robin.h>
35 #include <ngx_http_busy_lock.h> 39 #include <ngx_http_busy_lock.h>
36 #include <ngx_http_core_module.h> 40 #include <ngx_http_core_module.h>
37 41
42 #if (NGX_HTTP_SPDY)
43 #include <ngx_http_spdy.h>
44 #endif
38 #if (NGX_HTTP_CACHE) 45 #if (NGX_HTTP_CACHE)
39 #include <ngx_http_cache.h> 46 #include <ngx_http_cache.h>
40 #endif 47 #endif
41 #if (NGX_HTTP_SSI) 48 #if (NGX_HTTP_SSI)
42 #include <ngx_http_ssi_filter_module.h> 49 #include <ngx_http_ssi_filter_module.h>
78 ngx_int_t ngx_http_add_listen(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf, 85 ngx_int_t ngx_http_add_listen(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf,
79 ngx_http_listen_opt_t *lsopt); 86 ngx_http_listen_opt_t *lsopt);
80 87
81 88
82 void ngx_http_init_connection(ngx_connection_t *c); 89 void ngx_http_init_connection(ngx_connection_t *c);
90 void ngx_http_close_connection(ngx_connection_t *c);
83 91
84 #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME 92 #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
85 int ngx_http_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg); 93 int ngx_http_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg);
86 #endif 94 #endif
87 95
88 ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b); 96 ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b);
97 ngx_int_t ngx_http_parse_uri(ngx_http_request_t *r);
89 ngx_int_t ngx_http_parse_complex_uri(ngx_http_request_t *r, 98 ngx_int_t ngx_http_parse_complex_uri(ngx_http_request_t *r,
90 ngx_uint_t merge_slashes); 99 ngx_uint_t merge_slashes);
91 ngx_int_t ngx_http_parse_status_line(ngx_http_request_t *r, ngx_buf_t *b, 100 ngx_int_t ngx_http_parse_status_line(ngx_http_request_t *r, ngx_buf_t *b,
92 ngx_http_status_t *status); 101 ngx_http_status_t *status);
93 ngx_int_t ngx_http_parse_unsafe_uri(ngx_http_request_t *r, ngx_str_t *uri, 102 ngx_int_t ngx_http_parse_unsafe_uri(ngx_http_request_t *r, ngx_str_t *uri,
102 ngx_str_t *args); 111 ngx_str_t *args);
103 ngx_int_t ngx_http_parse_chunked(ngx_http_request_t *r, ngx_buf_t *b, 112 ngx_int_t ngx_http_parse_chunked(ngx_http_request_t *r, ngx_buf_t *b,
104 ngx_http_chunked_t *ctx); 113 ngx_http_chunked_t *ctx);
105 114
106 115
116 ngx_http_request_t *ngx_http_create_request(ngx_connection_t *c);
117 ngx_int_t ngx_http_process_request_uri(ngx_http_request_t *r);
118 ngx_int_t ngx_http_process_request_header(ngx_http_request_t *r);
119 void ngx_http_process_request(ngx_http_request_t *r);
107 void ngx_http_update_location_config(ngx_http_request_t *r); 120 void ngx_http_update_location_config(ngx_http_request_t *r);
108 void ngx_http_handler(ngx_http_request_t *r); 121 void ngx_http_handler(ngx_http_request_t *r);
109 void ngx_http_run_posted_requests(ngx_connection_t *c); 122 void ngx_http_run_posted_requests(ngx_connection_t *c);
110 ngx_int_t ngx_http_post_request(ngx_http_request_t *r, 123 ngx_int_t ngx_http_post_request(ngx_http_request_t *r,
111 ngx_http_posted_request_t *pr); 124 ngx_http_posted_request_t *pr);
112 void ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc); 125 void ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc);
126 void ngx_http_free_request(ngx_http_request_t *r, ngx_int_t rc);
113 127
114 void ngx_http_empty_handler(ngx_event_t *wev); 128 void ngx_http_empty_handler(ngx_event_t *wev);
115 void ngx_http_request_empty_handler(ngx_http_request_t *r); 129 void ngx_http_request_empty_handler(ngx_http_request_t *r);
116 130
117 131