comparison src/http/ngx_http_request.h @ 335:d4241d7787fe

nginx-0.0.3-2004-05-14-20:51:47 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 14 May 2004 16:51:47 +0000
parents 39b6f2df45c0
children 6bdf858bff8c
comparison
equal deleted inserted replaced
334:af451db3fe99 335:d4241d7787fe
29 #define NGX_HTTP_PARSE_INVALID_HEADER 14 29 #define NGX_HTTP_PARSE_INVALID_HEADER 14
30 #define NGX_HTTP_PARSE_TOO_LONG_HEADER 15 30 #define NGX_HTTP_PARSE_TOO_LONG_HEADER 15
31 #define NGX_HTTP_PARSE_NO_HOST_HEADER 16 31 #define NGX_HTTP_PARSE_NO_HOST_HEADER 16
32 #define NGX_HTTP_PARSE_INVALID_CL_HEADER 17 32 #define NGX_HTTP_PARSE_INVALID_CL_HEADER 17
33 #define NGX_HTTP_PARSE_POST_WO_CL_HEADER 18 33 #define NGX_HTTP_PARSE_POST_WO_CL_HEADER 18
34 #define NGX_HTTP_PARSE_INVALID_HOST 19
34 35
35 36
36 #define NGX_HTTP_OK 200 37 #define NGX_HTTP_OK 200
37 #define NGX_HTTP_PARTIAL_CONTENT 206 38 #define NGX_HTTP_PARTIAL_CONTENT 206
38 39
48 #define NGX_HTTP_REQUEST_TIME_OUT 408 49 #define NGX_HTTP_REQUEST_TIME_OUT 408
49 #define NGX_HTTP_REQUEST_ENTITY_TOO_LARGE 413 50 #define NGX_HTTP_REQUEST_ENTITY_TOO_LARGE 413
50 #define NGX_HTTP_REQUEST_URI_TOO_LARGE 414 51 #define NGX_HTTP_REQUEST_URI_TOO_LARGE 414
51 #define NGX_HTTP_RANGE_NOT_SATISFIABLE 416 52 #define NGX_HTTP_RANGE_NOT_SATISFIABLE 416
52 53
54
55 /* Our own HTTP codes */
56
57 #define NGX_HTTP_NGX_CODES NGX_HTTP_INVALID_HOST
58
59 /*
60 * We use the special code for the requests with invalid host name
61 * to distinguish it from 4XX in an error page redirection
62 */
63 #define NGX_HTTP_INVALID_HOST 498
64
53 /* 65 /*
54 * HTTP does not define the code for the case when a client closed 66 * HTTP does not define the code for the case when a client closed
55 * the connection while we are processing its request so we introduce 67 * the connection while we are processing its request so we introduce
56 * own code to log such situation when a client has closed the connection 68 * own code to log such situation when a client has closed the connection
57 * before we even try to send the HTTP header to it 69 * before we even try to send the HTTP header to it
58 */ 70 */
59 #define NGX_HTTP_CLIENT_CLOSED_REQUEST 499 71 #define NGX_HTTP_CLIENT_CLOSED_REQUEST 499
60 72
73
61 #define NGX_HTTP_INTERNAL_SERVER_ERROR 500 74 #define NGX_HTTP_INTERNAL_SERVER_ERROR 500
62 #define NGX_HTTP_NOT_IMPLEMENTED 501 75 #define NGX_HTTP_NOT_IMPLEMENTED 501
63 #define NGX_HTTP_BAD_GATEWAY 502 76 #define NGX_HTTP_BAD_GATEWAY 502
64 #define NGX_HTTP_SERVICE_UNAVAILABLE 503 77 #define NGX_HTTP_SERVICE_UNAVAILABLE 503
65 #define NGX_HTTP_GATEWAY_TIME_OUT 504 78 #define NGX_HTTP_GATEWAY_TIME_OUT 504
79
80
81 typedef enum {
82 NGX_HTTP_RESTRICT_HOST_OFF = 0,
83 NGX_HTTP_RESTRICT_HOST_ON,
84 NGX_HTTP_RESTRICT_HOST_CLOSE
85 } ngx_http_restrict_host_e;
66 86
67 87
68 typedef enum { 88 typedef enum {
69 NGX_HTTP_INITING_REQUEST_STATE = 0, 89 NGX_HTTP_INITING_REQUEST_STATE = 0,
70 NGX_HTTP_READING_REQUEST_STATE, 90 NGX_HTTP_READING_REQUEST_STATE,