comparison src/http/ngx_http_core_module.h @ 96:a23d010f356d

nginx-0.0.1-2003-05-27-16:18:54 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 27 May 2003 12:18:54 +0000
parents b48066122884
children 70d2345a903f
comparison
equal deleted inserted replaced
95:b48066122884 96:a23d010f356d
45 45
46 /* list of structures to find core_srv_conf quickly at run time */ 46 /* list of structures to find core_srv_conf quickly at run time */
47 47
48 typedef struct { 48 typedef struct {
49 int port; 49 int port;
50 ngx_str_t port_name;
50 ngx_array_t addrs; /* array of ngx_http_in_addr_t */ 51 ngx_array_t addrs; /* array of ngx_http_in_addr_t */
51 } ngx_http_in_port_t; 52 } ngx_http_in_port_t;
52 53
53 54
54 typedef struct { 55 typedef struct {
55 u_int32_t addr; 56 u_int32_t addr;
56 ngx_array_t names; /* array of ngx_http_server_name_t */ 57 ngx_array_t names; /* array of ngx_http_server_name_t */
57 ngx_http_core_srv_conf_t *core_srv_conf; /* default server conf 58 ngx_http_core_srv_conf_t *core_srv_conf; /* default server conf
58 for this address:port */ 59 for this address:port */
59 int flags; 60 int flags;
60 } ngx_http_in_addr_t; 61 } ngx_http_in_addr_t;
61 62
62 /* ngx_http_in_addr_t's flags */ 63 /* ngx_http_in_addr_t's flags */
63 #define NGX_HTTP_DEFAULT_SERVER 1 64 #define NGX_HTTP_DEFAULT_SERVER 1
64 65
85 ngx_str_t type; 86 ngx_str_t type;
86 } ngx_http_type_t; 87 } ngx_http_type_t;
87 88
88 89
89 typedef struct { 90 typedef struct {
90 ngx_str_t name; /* location name */ 91 ngx_str_t name; /* location name */
91 void **loc_conf ; /* pointer to the modules' loc_conf */ 92 void **loc_conf ; /* pointer to the modules' loc_conf */
92 93
93 int (*handler) (ngx_http_request_t *r); 94 int (*handler) (ngx_http_request_t *r);
94 95
95 ngx_str_t doc_root; /* root */ 96 ngx_str_t doc_root; /* root */
96 97
97 ngx_array_t *types; 98 ngx_array_t *types;
99 ngx_str_t default_type;
98 100
99 int sendfile; /* sendfile */ 101 int sendfile; /* sendfile */
100 ngx_msec_t send_timeout; /* send_timeout */ 102 ngx_msec_t send_timeout; /* send_timeout */
101 size_t send_lowat; /* send_lowa */ 103 size_t send_lowat; /* send_lowat */
102 size_t discarded_buffer_size; /* discarded_buffer_size */ 104 size_t discarded_buffer_size; /* discarded_buffer_size */
103 ngx_msec_t keepalive_timeout; /* keepalive_timeout */ 105 ngx_msec_t keepalive_timeout; /* keepalive_timeout */
104 ngx_msec_t lingering_time; /* lingering_time */ 106 ngx_msec_t lingering_time; /* lingering_time */
105 ngx_msec_t lingering_timeout; /* lingering_timeout */ 107 ngx_msec_t lingering_timeout; /* lingering_timeout */
106 108
107 } ngx_http_core_loc_conf_t; 109 } ngx_http_core_loc_conf_t;
108 110
109 111
110 112