Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-03-11 23:38:13 +0300
committerIgor Sysoev <igor@sysoev.ru>2003-03-11 23:38:13 +0300
commitb738757f359a79b346bcc40895ed0a5ca697e8e2 (patch)
tree517f3cdbf30667c5183ba06f4d895acc78a308bf /src/http/ngx_http.h
parent0dad629f63e6bb8bc61314ba0c0aed5412353947 (diff)
nginx-0.0.1-2003-03-11-23:38:13 import
Diffstat (limited to 'src/http/ngx_http.h')
-rw-r--r--src/http/ngx_http.h29
1 files changed, 7 insertions, 22 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h
index 60626d5f8..c549ed350 100644
--- a/src/http/ngx_http.h
+++ b/src/http/ngx_http.h
@@ -47,29 +47,17 @@
#define NGX_HTTP_NOT_FOUND 404
#define NGX_HTTP_REQUEST_URI_TOO_LARGE 414
#define NGX_HTTP_INTERNAL_SERVER_ERROR 500
+#define NGX_HTTP_NOT_IMPLEMENTED 501
+#define NGX_HTTP_BAD_GATEWAY 502
+#define NGX_HTTP_SERVICE_UNAVAILABLE 503
+#define NGX_HTTP_GATEWAY_TIME_OUT 504
+
#define NGX_HTTP_STATIC_HANDLER 0
#define NGX_HTTP_DIRECTORY_HANDLER 1
-
-typedef struct {
- char *doc_root;
- size_t doc_root_len;
-
- size_t connection_pool_size;
- size_t request_pool_size;
-
- size_t header_buffer_size;
- size_t discarded_buffer_size;
-
- ngx_msec_t header_timeout;
- ngx_msec_t lingering_timeout;
- time_t lingering_time;
-} ngx_http_server_t;
-
-
typedef struct {
size_t len;
char *data;
@@ -232,9 +220,9 @@ typedef struct {
#define ngx_http_get_module_loc_conf(r, module) r->loc_conf[module.index]
#define ngx_http_get_module_ctx(r, module) r->ctx[module.index]
-#define ngx_http_create_ctx(r, cx, module, size) \
+#define ngx_http_create_ctx(r, cx, module, size, error) \
do { \
- ngx_test_null(cx, ngx_pcalloc(r->pool, size), NGX_ERROR); \
+ ngx_test_null(cx, ngx_pcalloc(r->pool, size), error); \
r->ctx[module.index] = cx; \
} while (0)
@@ -279,9 +267,6 @@ extern int ngx_http_client_header_buffer_size;
extern int ngx_http_large_client_header;
extern int ngx_http_discarded_buffer_size;
-extern int ngx_http_lingering_timeout;
-extern int ngx_http_lingering_time;
-
extern int ngx_http_url_in_error_log;
extern ngx_array_t ngx_http_index_handlers;