comparison src/http/ngx_http_core_module.c @ 356:2e3cbc1bbe3c

nginx-0.0.7-2004-06-16-19:32:11 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 16 Jun 2004 15:32:11 +0000
parents 55e496a8ece3
children 9c2515d70489
comparison
equal deleted inserted replaced
355:0fb6c53fb135 356:2e3cbc1bbe3c
16 void *parent, void *child); 16 void *parent, void *child);
17 static void *ngx_http_core_create_loc_conf(ngx_conf_t *cf); 17 static void *ngx_http_core_create_loc_conf(ngx_conf_t *cf);
18 static char *ngx_http_core_merge_loc_conf(ngx_conf_t *cf, 18 static char *ngx_http_core_merge_loc_conf(ngx_conf_t *cf,
19 void *parent, void *child); 19 void *parent, void *child);
20 20
21 static int ngx_http_core_init(ngx_cycle_t *cycle); 21 static ngx_int_t ngx_http_core_init(ngx_cycle_t *cycle);
22 static char *ngx_server_block(ngx_conf_t *cf, ngx_command_t *cmd, void *dummy); 22 static char *ngx_server_block(ngx_conf_t *cf, ngx_command_t *cmd, void *dummy);
23 static int ngx_cmp_locations(const void *first, const void *second); 23 static int ngx_cmp_locations(const void *first, const void *second);
24 static char *ngx_location_block(ngx_conf_t *cf, ngx_command_t *cmd, 24 static char *ngx_location_block(ngx_conf_t *cf, ngx_command_t *cmd,
25 void *dummy); 25 void *dummy);
26 static char *ngx_types_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); 26 static char *ngx_types_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
446 ngx_http_finalize_request(r, NGX_HTTP_NOT_FOUND); 446 ngx_http_finalize_request(r, NGX_HTTP_NOT_FOUND);
447 return; 447 return;
448 } 448 }
449 449
450 450
451 int ngx_http_find_location_config(ngx_http_request_t *r) 451 ngx_int_t ngx_http_find_location_config(ngx_http_request_t *r)
452 { 452 {
453 int rc; 453 int rc;
454 ngx_uint_t i; 454 ngx_uint_t i;
455 ngx_str_t *auto_redirect; 455 ngx_str_t *auto_redirect;
456 ngx_http_core_loc_conf_t *clcf, **clcfp; 456 ngx_http_core_loc_conf_t *clcf, **clcfp;
663 663
664 return NGX_OK; 664 return NGX_OK;
665 } 665 }
666 666
667 667
668 int ngx_http_send_header(ngx_http_request_t *r) 668 ngx_int_t ngx_http_send_header(ngx_http_request_t *r)
669 { 669 {
670 if (r->main) { 670 if (r->main) {
671 return NGX_OK; 671 return NGX_OK;
672 } 672 }
673 673
741 741
742 return NGX_OK; 742 return NGX_OK;
743 } 743 }
744 744
745 745
746 int ngx_http_internal_redirect(ngx_http_request_t *r, 746 ngx_int_t ngx_http_internal_redirect(ngx_http_request_t *r,
747 ngx_str_t *uri, ngx_str_t *args) 747 ngx_str_t *uri, ngx_str_t *args)
748 { 748 {
749 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 749 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
750 "internal redirect: \"%s\"", uri->data); 750 "internal redirect: \"%s\"", uri->data);
751 751
752 r->uri.len = uri->len; 752 r->uri.len = uri->len;
806 } 806 }
807 807
808 #endif 808 #endif
809 809
810 810
811 static int ngx_http_core_init(ngx_cycle_t *cycle) 811 static ngx_int_t ngx_http_core_init(ngx_cycle_t *cycle)
812 { 812 {
813 #if 0 813 #if 0
814 ngx_http_handler_pt *h; 814 ngx_http_handler_pt *h;
815 ngx_http_conf_ctx_t *ctx; 815 ngx_http_conf_ctx_t *ctx;
816 ngx_http_core_main_conf_t *cmcf; 816 ngx_http_core_main_conf_t *cmcf;