Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ngx_http.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (C) Igor Sysoev
4  * Copyright (C) Nginx, Inc.
5  */
6 
7 
8 #ifndef _NGX_HTTP_H_INCLUDED_
9 #define _NGX_HTTP_H_INCLUDED_
10 
11 
12 #include <ngx_config.h>
13 #include <ngx_core.h>
14 
15 
22 
23 #if (NGX_HTTP_SPDY)
24 typedef struct ngx_http_spdy_stream_s ngx_http_spdy_stream_t;
25 #endif
26 
28  ngx_table_elt_t *h, ngx_uint_t offset);
29 typedef u_char *(*ngx_http_log_handler_pt)(ngx_http_request_t *r,
30  ngx_http_request_t *sr, u_char *buf, size_t len);
31 
32 
33 #include <ngx_http_variables.h>
34 #include <ngx_http_config.h>
35 #include <ngx_http_request.h>
36 #include <ngx_http_script.h>
37 #include <ngx_http_upstream.h>
39 #include <ngx_http_busy_lock.h>
40 #include <ngx_http_core_module.h>
41 
42 #if (NGX_HTTP_SPDY)
43 #include <ngx_http_spdy.h>
44 #endif
45 #if (NGX_HTTP_CACHE)
46 #include <ngx_http_cache.h>
47 #endif
48 #if (NGX_HTTP_SSI)
50 #endif
51 #if (NGX_HTTP_SSL)
52 #include <ngx_http_ssl_module.h>
53 #endif
54 
55 
60 };
61 
62 
65  off_t size;
66  off_t length;
67 };
68 
69 
70 typedef struct {
74  u_char *start;
75  u_char *end;
77 
78 
79 #define ngx_http_get_module_ctx(r, module) (r)->ctx[module.ctx_index]
80 #define ngx_http_set_ctx(r, c, module) r->ctx[module.ctx_index] = c;
81 
82 
86  ngx_http_listen_opt_t *lsopt);
87 
88 
91 
92 #if (NGX_HTTP_SSL && defined SSL_CTRL_SET_TLSEXT_HOSTNAME)
93 int ngx_http_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg);
94 #endif
95 
99  ngx_uint_t merge_slashes);
101  ngx_http_status_t *status);
103  ngx_str_t *args, ngx_uint_t *flags);
105  ngx_uint_t allow_underscores);
107  ngx_str_t *name, ngx_str_t *value);
108 ngx_int_t ngx_http_arg(ngx_http_request_t *r, u_char *name, size_t len,
109  ngx_str_t *value);
111  ngx_str_t *args);
113  ngx_http_chunked_t *ctx);
114 
115 
127 
130 
131 
132 #define ngx_http_ephemeral(r) (void *) (&r->uri_start)
133 
134 
135 #define NGX_HTTP_LAST 1
136 #define NGX_HTTP_FLUSH 2
137 
139 
140 
142  ngx_http_client_body_handler_pt post_handler);
143 
146  ngx_int_t error);
150 
151 
152 time_t ngx_http_parse_time(u_char *value, size_t len);
153 size_t ngx_http_get_time(char *buf, time_t t);
154 
155 
156 
161 
162 
163 char *ngx_http_types_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
165  ngx_hash_t *types_hash, ngx_array_t **prev_keys,
166  ngx_hash_t *prev_types_hash, ngx_str_t *default_types);
168  ngx_str_t *default_type);
169 
170 #if (NGX_HTTP_DEGRADATION)
172 #endif
173 
174 
176 
178 
179 
182 
183 
184 #endif /* _NGX_HTTP_H_INCLUDED_ */