comparison src/http/ngx_http_core_module.h @ 71:59229033ae93

nginx-0.0.1-2003-04-08-19:40:10 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 08 Apr 2003 15:40:10 +0000
parents e43f406e4525
children 5f6d848dcbef
comparison
equal deleted inserted replaced
70:e320bf51c4e3 71:59229033ae93
55 typedef struct { 55 typedef struct {
56 ngx_str_t name; /* location name */ 56 ngx_str_t name; /* location name */
57 void **loc_conf; /* pointer to modules loc_conf, 57 void **loc_conf; /* pointer to modules loc_conf,
58 used in translation handler */ 58 used in translation handler */
59 59
60 int (*handler) (ngx_http_request_t *r);
61
60 ngx_str_t doc_root; /* root */ 62 ngx_str_t doc_root; /* root */
61 63
64 int sendfile; /* sendfile */
62 time_t send_timeout; /* send_timeout */ 65 time_t send_timeout; /* send_timeout */
63 size_t send_lowat; /* send_lowa */ 66 size_t send_lowat; /* send_lowa */
64 size_t discarded_buffer_size; /* discarded_buffer_size */ 67 size_t discarded_buffer_size; /* discarded_buffer_size */
65 time_t lingering_time; /* lingering_time */ 68 time_t lingering_time; /* lingering_time */
66 ngx_msec_t lingering_timeout; /* lingering_timeout */ 69 ngx_msec_t lingering_timeout; /* lingering_timeout */
70
67 } ngx_http_core_loc_conf_t; 71 } ngx_http_core_loc_conf_t;
68 72
69 73
70 74
71 75
74 int dummy; 78 int dummy;
75 } ngx_http_core_conf_t; 79 } ngx_http_core_conf_t;
76 #endif 80 #endif
77 81
78 82
83 #if 0
84 #define ngx_http_set_loc_handler(conf_ctx, ngx_http_handler) \
85 { \
86 ngx_http_conf_ctx_t *cx = conf_ctx; \
87 ngx_http_core_loc_conf_t *lcf; \
88 lcf = cx->loc_conf[ngx_http_core_module_ctx.index]; \
89 lcf->handler = ngx_http_handler; \
90 }
91 #endif
92
93
79 extern ngx_http_module_t ngx_http_core_module_ctx; 94 extern ngx_http_module_t ngx_http_core_module_ctx;
80 extern ngx_module_t ngx_http_core_module; 95 extern ngx_module_t ngx_http_core_module;
81 96
82 extern int (*ngx_http_top_header_filter) (ngx_http_request_t *r);
83 extern int ngx_http_max_module; 97 extern int ngx_http_max_module;
84 98
85 99
86 100
87 int ngx_http_core_translate_handler(ngx_http_request_t *r); 101 int ngx_http_core_translate_handler(ngx_http_request_t *r);