Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 6049:42d9beeb22db
Request body: filters support.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 23 Mar 2015 21:09:19 +0300 |
parents | 1fdba317ee6d |
children | 187aa751ad62 312472807db8 |
comparison
equal
deleted
inserted
replaced
6048:9e231d4cecca | 6049:42d9beeb22db |
---|---|
24 static ngx_int_t ngx_http_core_find_location(ngx_http_request_t *r); | 24 static ngx_int_t ngx_http_core_find_location(ngx_http_request_t *r); |
25 static ngx_int_t ngx_http_core_find_static_location(ngx_http_request_t *r, | 25 static ngx_int_t ngx_http_core_find_static_location(ngx_http_request_t *r, |
26 ngx_http_location_tree_node_t *node); | 26 ngx_http_location_tree_node_t *node); |
27 | 27 |
28 static ngx_int_t ngx_http_core_preconfiguration(ngx_conf_t *cf); | 28 static ngx_int_t ngx_http_core_preconfiguration(ngx_conf_t *cf); |
29 static ngx_int_t ngx_http_core_postconfiguration(ngx_conf_t *cf); | |
29 static void *ngx_http_core_create_main_conf(ngx_conf_t *cf); | 30 static void *ngx_http_core_create_main_conf(ngx_conf_t *cf); |
30 static char *ngx_http_core_init_main_conf(ngx_conf_t *cf, void *conf); | 31 static char *ngx_http_core_init_main_conf(ngx_conf_t *cf, void *conf); |
31 static void *ngx_http_core_create_srv_conf(ngx_conf_t *cf); | 32 static void *ngx_http_core_create_srv_conf(ngx_conf_t *cf); |
32 static char *ngx_http_core_merge_srv_conf(ngx_conf_t *cf, | 33 static char *ngx_http_core_merge_srv_conf(ngx_conf_t *cf, |
33 void *parent, void *child); | 34 void *parent, void *child); |
777 }; | 778 }; |
778 | 779 |
779 | 780 |
780 static ngx_http_module_t ngx_http_core_module_ctx = { | 781 static ngx_http_module_t ngx_http_core_module_ctx = { |
781 ngx_http_core_preconfiguration, /* preconfiguration */ | 782 ngx_http_core_preconfiguration, /* preconfiguration */ |
782 NULL, /* postconfiguration */ | 783 ngx_http_core_postconfiguration, /* postconfiguration */ |
783 | 784 |
784 ngx_http_core_create_main_conf, /* create main configuration */ | 785 ngx_http_core_create_main_conf, /* create main configuration */ |
785 ngx_http_core_init_main_conf, /* init main configuration */ | 786 ngx_http_core_init_main_conf, /* init main configuration */ |
786 | 787 |
787 ngx_http_core_create_srv_conf, /* create server configuration */ | 788 ngx_http_core_create_srv_conf, /* create server configuration */ |
3415 | 3416 |
3416 static ngx_int_t | 3417 static ngx_int_t |
3417 ngx_http_core_preconfiguration(ngx_conf_t *cf) | 3418 ngx_http_core_preconfiguration(ngx_conf_t *cf) |
3418 { | 3419 { |
3419 return ngx_http_variables_add_core_vars(cf); | 3420 return ngx_http_variables_add_core_vars(cf); |
3421 } | |
3422 | |
3423 | |
3424 static ngx_int_t | |
3425 ngx_http_core_postconfiguration(ngx_conf_t *cf) | |
3426 { | |
3427 ngx_http_top_request_body_filter = ngx_http_request_body_save_filter; | |
3428 | |
3429 return NGX_OK; | |
3420 } | 3430 } |
3421 | 3431 |
3422 | 3432 |
3423 static void * | 3433 static void * |
3424 ngx_http_core_create_main_conf(ngx_conf_t *cf) | 3434 ngx_http_core_create_main_conf(ngx_conf_t *cf) |