Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.h @ 44:0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 09 Jan 2003 05:36:00 +0000 |
parents | src/http/ngx_http_core.h@59e7c7f30d49 |
children | d81326c3b21b |
comparison
equal
deleted
inserted
replaced
43:53cd05892261 | 44:0e81ac0bb3e2 |
---|---|
1 #ifndef _NGX_HTTP_CORE_H_INCLUDED_ | |
2 #define _NGX_HTTP_CORE_H_INCLUDED_ | |
3 | |
4 | |
5 #include <ngx_string.h> | |
6 #include <ngx_array.h> | |
7 #include <ngx_http.h> | |
8 | |
9 | |
10 typedef struct { | |
11 int addr; | |
12 int port; | |
13 int family; | |
14 int flags; /* 'default' */ | |
15 ngx_conf_file_t *conf_file; | |
16 int line; | |
17 } ngx_http_listen_t; | |
18 | |
19 | |
20 typedef struct { | |
21 ngx_array_t locations; /* array of ngx_http_core_loc_conf_t */ | |
22 | |
23 ngx_array_t listen; /* 'listen', array of ngx_http_listen_t */ | |
24 ngx_array_t server_names; /* 'server_name', | |
25 array of ngx_http_server_name_t */ | |
26 ngx_http_conf_ctx_t *ctx; | |
27 } ngx_http_core_srv_conf_t; | |
28 | |
29 | |
30 typedef struct { | |
31 ngx_str_t name; | |
32 ngx_http_core_srv_conf_t *core_srv_conf; | |
33 } ngx_http_server_name_t; | |
34 | |
35 | |
36 typedef struct { | |
37 int port; | |
38 ngx_array_t addr; | |
39 } ngx_http_in_port_t; | |
40 | |
41 typedef struct { | |
42 u_int32_t addr; | |
43 ngx_array_t names; | |
44 int flags; | |
45 ngx_http_core_srv_conf_t *core_srv_conf; | |
46 } ngx_http_in_addr_t; | |
47 | |
48 #define NGX_HTTP_DEFAULT_SERVER 1 | |
49 | |
50 | |
51 | |
52 typedef struct { | |
53 ngx_str_t name; /* location name */ | |
54 void **loc_conf; /* used in translation handler */ | |
55 | |
56 ngx_str_t doc_root; /* 'root' */ | |
57 | |
58 time_t send_timeout; /* 'send_timeout' */ | |
59 size_t discarded_buffer_size; /* 'discarded_buffer_size */ | |
60 time_t lingering_time; /* 'lingering_time */ | |
61 ngx_msec_t lingering_timeout; /* 'lingering_timeout */ | |
62 } ngx_http_core_loc_conf_t; | |
63 | |
64 | |
65 | |
66 | |
67 #if 0 | |
68 typedef struct { | |
69 int dummy; | |
70 } ngx_http_core_conf_t; | |
71 #endif | |
72 | |
73 | |
74 extern ngx_http_module_t ngx_http_core_module_ctx; | |
75 extern ngx_module_t ngx_http_core_module; | |
76 | |
77 extern int (*ngx_http_top_header_filter) (ngx_http_request_t *r); | |
78 extern int ngx_http_max_module; | |
79 | |
80 | |
81 | |
82 int ngx_http_core_translate_handler(ngx_http_request_t *r); | |
83 | |
84 | |
85 | |
86 #endif /* _NGX_HTTP_CORE_H_INCLUDED_ */ |