comparison src/http/modules/ngx_http_status.c @ 216:f1d0e5f09c1e

nginx-0.0.1-2003-12-25-23:26:58 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 25 Dec 2003 20:26:58 +0000
parents
children
comparison
equal deleted inserted replaced
215:5adc2b75f8a5 216:f1d0e5f09c1e
1
2 #include <ngx_config.h>
3 #include <ngx_core.h>
4 #include <ngx_http.h>
5
6
7 static ngx_command_t ngx_http_status_commands[] = {
8
9 ngx_null_command
10 };
11
12
13 ngx_http_module_t ngx_http_status_module_ctx = {
14 NULL, /* pre conf */
15
16 NULL, /* create main configuration */
17 NULL, /* init main configuration */
18
19 NULL, /* create server configuration */
20 NULL, /* merge server configuration */
21
22 ngx_http_status_create_loc_conf, /* create location configration */
23 ngx_http_status_merge_loc_conf /* merge location configration */
24 };
25
26
27 ngx_module_t ngx_http_status_module = {
28 NGX_MODULE,
29 &ngx_http_status_module_ctx, /* module context */
30 ngx_http_status_commands, /* module directives */
31 NGX_HTTP_MODULE, /* module type */
32 ngx_http_status_init, /* init module */
33 NULL /* init child */
34 };
35
36
37 static char http_states = "IRPCUWLK";
38
39
40 int ngx_http_status_handler(ngx_http_request_t *r)
41 {
42 ngx_int_t i, http;
43 ngx_connection_t *c;
44 ngx_http_request_t *sr;
45
46 c = ngx_cycle->connections;
47
48 for (i = 0; i < ngx_cycle->connection_n; i++) {
49 if (c[i].module != http || c[i].data == NULL) {
50 continue;
51 }
52
53 if (c[i].data == NULL && c[i].fd != -1) {
54 'A'
55 }
56
57 sr = c[i].data;
58 }
59
60 return NGX_OK;
61 }