nginx/src/http/ngx_http_request.h


/*
 * Copyright (C) Igor Sysoev
 * Copyright (C) Nginx, Inc.
 */


#ifndef _NGX_HTTP_REQUEST_H_INCLUDED_
#define _NGX_HTTP_REQUEST_H_INCLUDED_


#define NGX_HTTP_MAX_URI_CHANGES
#define NGX_HTTP_MAX_SUBREQUESTS

/* must be 2^n */
#define NGX_HTTP_LC_HEADER_LEN


#define NGX_HTTP_DISCARD_BUFFER_SIZE
#define NGX_HTTP_LINGERING_BUFFER_SIZE


#define NGX_HTTP_VERSION_9
#define NGX_HTTP_VERSION_10
#define NGX_HTTP_VERSION_11
#define NGX_HTTP_VERSION_20
#define NGX_HTTP_VERSION_30

#define NGX_HTTP_UNKNOWN
#define NGX_HTTP_GET
#define NGX_HTTP_HEAD
#define NGX_HTTP_POST
#define NGX_HTTP_PUT
#define NGX_HTTP_DELETE
#define NGX_HTTP_MKCOL
#define NGX_HTTP_COPY
#define NGX_HTTP_MOVE
#define NGX_HTTP_OPTIONS
#define NGX_HTTP_PROPFIND
#define NGX_HTTP_PROPPATCH
#define NGX_HTTP_LOCK
#define NGX_HTTP_UNLOCK
#define NGX_HTTP_PATCH
#define NGX_HTTP_TRACE
#define NGX_HTTP_CONNECT

#define NGX_HTTP_CONNECTION_CLOSE
#define NGX_HTTP_CONNECTION_KEEP_ALIVE


#define NGX_NONE


#define NGX_HTTP_PARSE_HEADER_DONE

#define NGX_HTTP_CLIENT_ERROR
#define NGX_HTTP_PARSE_INVALID_METHOD
#define NGX_HTTP_PARSE_INVALID_REQUEST
#define NGX_HTTP_PARSE_INVALID_VERSION
#define NGX_HTTP_PARSE_INVALID_09_METHOD

#define NGX_HTTP_PARSE_INVALID_HEADER


/* unused                                  1 */
#define NGX_HTTP_SUBREQUEST_IN_MEMORY
#define NGX_HTTP_SUBREQUEST_WAITED
#define NGX_HTTP_SUBREQUEST_CLONE
#define NGX_HTTP_SUBREQUEST_BACKGROUND

#define NGX_HTTP_LOG_UNSAFE


#define NGX_HTTP_CONTINUE
#define NGX_HTTP_SWITCHING_PROTOCOLS
#define NGX_HTTP_PROCESSING

#define NGX_HTTP_OK
#define NGX_HTTP_CREATED
#define NGX_HTTP_ACCEPTED
#define NGX_HTTP_NO_CONTENT
#define NGX_HTTP_PARTIAL_CONTENT

#define NGX_HTTP_SPECIAL_RESPONSE
#define NGX_HTTP_MOVED_PERMANENTLY
#define NGX_HTTP_MOVED_TEMPORARILY
#define NGX_HTTP_SEE_OTHER
#define NGX_HTTP_NOT_MODIFIED
#define NGX_HTTP_TEMPORARY_REDIRECT
#define NGX_HTTP_PERMANENT_REDIRECT

#define NGX_HTTP_BAD_REQUEST
#define NGX_HTTP_UNAUTHORIZED
#define NGX_HTTP_FORBIDDEN
#define NGX_HTTP_NOT_FOUND
#define NGX_HTTP_NOT_ALLOWED
#define NGX_HTTP_REQUEST_TIME_OUT
#define NGX_HTTP_CONFLICT
#define NGX_HTTP_LENGTH_REQUIRED
#define NGX_HTTP_PRECONDITION_FAILED
#define NGX_HTTP_REQUEST_ENTITY_TOO_LARGE
#define NGX_HTTP_REQUEST_URI_TOO_LARGE
#define NGX_HTTP_UNSUPPORTED_MEDIA_TYPE
#define NGX_HTTP_RANGE_NOT_SATISFIABLE
#define NGX_HTTP_MISDIRECTED_REQUEST
#define NGX_HTTP_TOO_MANY_REQUESTS


/* Our own HTTP codes */

/* The special code to close connection without any response */
#define NGX_HTTP_CLOSE

#define NGX_HTTP_NGINX_CODES

#define NGX_HTTP_REQUEST_HEADER_TOO_LARGE

#define NGX_HTTPS_CERT_ERROR
#define NGX_HTTPS_NO_CERT

/*
 * We use the special code for the plain HTTP requests that are sent to
 * HTTPS port to distinguish it from 4XX in an error page redirection
 */
#define NGX_HTTP_TO_HTTPS

/* 498 is the canceled code for the requests with invalid host name */

/*
 * HTTP does not define the code for the case when a client closed
 * the connection while we are processing its request so we introduce
 * own code to log such situation when a client has closed the connection
 * before we even try to send the HTTP header to it
 */
#define NGX_HTTP_CLIENT_CLOSED_REQUEST


#define NGX_HTTP_INTERNAL_SERVER_ERROR
#define NGX_HTTP_NOT_IMPLEMENTED
#define NGX_HTTP_BAD_GATEWAY
#define NGX_HTTP_SERVICE_UNAVAILABLE
#define NGX_HTTP_GATEWAY_TIME_OUT
#define NGX_HTTP_VERSION_NOT_SUPPORTED
#define NGX_HTTP_INSUFFICIENT_STORAGE


#define NGX_HTTP_LOWLEVEL_BUFFERED
#define NGX_HTTP_WRITE_BUFFERED
#define NGX_HTTP_GZIP_BUFFERED
#define NGX_HTTP_SSI_BUFFERED
#define NGX_HTTP_SUB_BUFFERED
#define NGX_HTTP_COPY_BUFFERED


ngx_http_state_e;


ngx_http_header_t;


ngx_http_header_out_t;


ngx_http_headers_in_t;


ngx_http_headers_out_t;


ngx_http_client_body_handler_pt;

ngx_http_request_body_t;


ngx_http_addr_conf_t;

ngx_http_connection_t;


ngx_http_cleanup_pt;

ngx_http_cleanup_t;

struct ngx_http_cleanup_s {};


ngx_http_post_subrequest_pt;

ngx_http_post_subrequest_t;


ngx_http_postponed_request_t;

struct ngx_http_postponed_request_s {};


ngx_http_posted_request_t;

struct ngx_http_posted_request_s {};


ngx_http_handler_pt;
ngx_http_event_handler_pt;


struct ngx_http_request_s {};


ngx_http_ephemeral_t;


#define ngx_http_ephemeral(r)


extern ngx_http_header_t       ngx_http_headers_in[];
extern ngx_http_header_out_t   ngx_http_headers_out[];


#define ngx_http_set_log_request(log, r)


#endif /* _NGX_HTTP_REQUEST_H_INCLUDED_ */