Mercurial > hg > nginx
comparison src/http/ngx_http.h @ 2:ffffe1499bce
nginx-0.0.1-2002-08-16-19:27:03 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 16 Aug 2002 15:27:03 +0000 |
parents | d220029ac7f3 |
children | 34a521b1a148 |
comparison
equal
deleted
inserted
replaced
1:d220029ac7f3 | 2:ffffe1499bce |
---|---|
17 #define NGX_HTTP_POST 3 | 17 #define NGX_HTTP_POST 3 |
18 | 18 |
19 #define NGX_HTTP_CONN_CLOSE 0 | 19 #define NGX_HTTP_CONN_CLOSE 0 |
20 #define NGX_HTTP_CONN_KEEP_ALIVE 1 | 20 #define NGX_HTTP_CONN_KEEP_ALIVE 1 |
21 | 21 |
22 #define NGX_HTTP_OK 200 | 22 #define NGX_OK 0 |
23 | |
24 #define NGX_HTTP_OK 200 | |
25 #define NGX_HTTP_NOT_FOUND 404 | |
26 #define NGX_HTTP_INTERNAL_SERVER_ERROR 503 | |
27 | |
28 | |
29 #define NGX_HTTP_STATIC_HANDLER 0 | |
30 #define NGX_HTTP_DIRECTORY_HANDLER 1 | |
23 | 31 |
24 | 32 |
25 typedef struct { | 33 typedef struct { |
26 void *ctx; /* STUB */ | 34 void *ctx; /* STUB */ |
27 } ngx_http_module_t; | 35 } ngx_http_module_t; |
28 | 36 |
29 /* STUB */ | 37 /* STUB */ |
30 #define ngx_get_module_ctx(r, module) (module)->ctx | 38 #define ngx_get_module_ctx(r, module) (module)->ctx |
39 | |
40 typedef struct { | |
41 char *doc_root; | |
42 int doc_root_len; | |
43 } ngx_http_server_t; | |
31 | 44 |
32 typedef struct { | 45 typedef struct { |
33 char *buff; | 46 char *buff; |
34 char *pos; | 47 char *pos; |
35 char *last; | 48 char *last; |
48 } ngx_http_header_out_t; | 61 } ngx_http_header_out_t; |
49 | 62 |
50 typedef struct ngx_http_request_s ngx_http_request_t; | 63 typedef struct ngx_http_request_s ngx_http_request_t; |
51 | 64 |
52 struct ngx_http_request_s { | 65 struct ngx_http_request_s { |
66 char *filename; | |
67 char *location; | |
68 | |
69 int filename_len; | |
70 int (*handler)(ngx_http_request_t *r); | |
71 | |
53 int method; | 72 int method; |
54 | 73 |
55 int http_version; | 74 int http_version; |
56 int http_major; | 75 int http_major; |
57 int http_minor; | 76 int http_minor; |
58 | 77 |
59 char *uri; | 78 char *uri; |
60 ngx_http_request_t *main; | 79 ngx_http_request_t *main; |
61 | 80 |
62 ngx_connection_t *connection; | 81 ngx_connection_t *connection; |
82 ngx_http_server_t *server; | |
63 ngx_buff_t *buff; | 83 ngx_buff_t *buff; |
64 ngx_pool_t *pool; | 84 ngx_pool_t *pool; |
65 | 85 |
66 /* internal */ | 86 /* internal */ |
67 unsigned unusual_uri:1; | 87 unsigned unusual_uri:1; |