diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-04-08 15:40:10 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-04-08 15:40:10 +0000 |
commit | e2a3154f0e3020e1f21f5a88b29daf8cc26e0dc5 (patch) | |
tree | 6198fc644d2efe9d10bab8b87004a70324d6cf5d /src/http/ngx_http_core_module.h | |
parent | 3f76ec190a3bd398c229deb0b4f298b9637a3129 (diff) | |
download | nginx-e2a3154f0e3020e1f21f5a88b29daf8cc26e0dc5.tar.gz nginx-e2a3154f0e3020e1f21f5a88b29daf8cc26e0dc5.zip |
nginx-0.0.1-2003-04-08-19:40:10 import
Diffstat (limited to 'src/http/ngx_http_core_module.h')
-rw-r--r-- | src/http/ngx_http_core_module.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index 2ca0b6381..1c92efdec 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -57,13 +57,17 @@ typedef struct { void **loc_conf; /* pointer to modules loc_conf, used in translation handler */ + int (*handler) (ngx_http_request_t *r); + ngx_str_t doc_root; /* root */ + int sendfile; /* sendfile */ time_t send_timeout; /* send_timeout */ size_t send_lowat; /* send_lowa */ size_t discarded_buffer_size; /* discarded_buffer_size */ time_t lingering_time; /* lingering_time */ ngx_msec_t lingering_timeout; /* lingering_timeout */ + } ngx_http_core_loc_conf_t; @@ -76,10 +80,20 @@ typedef struct { #endif +#if 0 +#define ngx_http_set_loc_handler(conf_ctx, ngx_http_handler) \ + { \ + ngx_http_conf_ctx_t *cx = conf_ctx; \ + ngx_http_core_loc_conf_t *lcf; \ + lcf = cx->loc_conf[ngx_http_core_module_ctx.index]; \ + lcf->handler = ngx_http_handler; \ + } +#endif + + extern ngx_http_module_t ngx_http_core_module_ctx; extern ngx_module_t ngx_http_core_module; -extern int (*ngx_http_top_header_filter) (ngx_http_request_t *r); extern int ngx_http_max_module; |