summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-08-16 15:27:03 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-08-16 15:27:03 +0000
commite0af1b89dcd100462a3195534b2f78a838ca85b5 (patch)
tree9c9eb63c71b13cc9159209e39eb099c54c6cb6b1 /src/http/ngx_http.h
parent0c331d9f666b4f9be91009b7caea457e58a80779 (diff)
downloadnginx-e0af1b89dcd100462a3195534b2f78a838ca85b5.tar.gz
nginx-e0af1b89dcd100462a3195534b2f78a838ca85b5.tar.bz2
nginx-0.0.1-2002-08-16-19:27:03 import
Diffstat (limited to 'src/http/ngx_http.h')
-rw-r--r--src/http/ngx_http.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h
index 6fa0f7829..e05dcc857 100644
--- a/src/http/ngx_http.h
+++ b/src/http/ngx_http.h
@@ -19,7 +19,15 @@
#define NGX_HTTP_CONN_CLOSE 0
#define NGX_HTTP_CONN_KEEP_ALIVE 1
-#define NGX_HTTP_OK 200
+#define NGX_OK 0
+
+#define NGX_HTTP_OK 200
+#define NGX_HTTP_NOT_FOUND 404
+#define NGX_HTTP_INTERNAL_SERVER_ERROR 503
+
+
+#define NGX_HTTP_STATIC_HANDLER 0
+#define NGX_HTTP_DIRECTORY_HANDLER 1
typedef struct {
@@ -30,6 +38,11 @@ typedef struct {
#define ngx_get_module_ctx(r, module) (module)->ctx
typedef struct {
+ char *doc_root;
+ int doc_root_len;
+} ngx_http_server_t;
+
+typedef struct {
char *buff;
char *pos;
char *last;
@@ -50,6 +63,12 @@ typedef struct {
typedef struct ngx_http_request_s ngx_http_request_t;
struct ngx_http_request_s {
+ char *filename;
+ char *location;
+
+ int filename_len;
+ int (*handler)(ngx_http_request_t *r);
+
int method;
int http_version;
@@ -59,7 +78,8 @@ struct ngx_http_request_s {
char *uri;
ngx_http_request_t *main;
- ngx_connection_t *connection;
+ ngx_connection_t *connection;
+ ngx_http_server_t *server;
ngx_buff_t *buff;
ngx_pool_t *pool;