Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
ngx_http_core_module.h File Reference
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
Include dependency graph for ngx_http_core_module.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ngx_http_listen_opt_t
struct  ngx_http_phase_handler_s
struct  ngx_http_phase_engine_t
struct  ngx_http_phase_t
struct  ngx_http_core_main_conf_t
struct  ngx_http_core_srv_conf_t
struct  ngx_http_server_name_t
struct  ngx_http_virtual_names_t
struct  ngx_http_addr_conf_s
struct  ngx_http_in_addr_t
struct  ngx_http_port_t
struct  ngx_http_conf_port_t
struct  ngx_http_conf_addr_t
struct  ngx_http_err_page_t
struct  ngx_http_try_file_t
struct  ngx_http_core_loc_conf_s
struct  ngx_http_location_queue_t
struct  ngx_http_location_tree_node_s

Macros

#define NGX_HTTP_GZIP_PROXIED_OFF   0x0002
#define NGX_HTTP_GZIP_PROXIED_EXPIRED   0x0004
#define NGX_HTTP_GZIP_PROXIED_NO_CACHE   0x0008
#define NGX_HTTP_GZIP_PROXIED_NO_STORE   0x0010
#define NGX_HTTP_GZIP_PROXIED_PRIVATE   0x0020
#define NGX_HTTP_GZIP_PROXIED_NO_LM   0x0040
#define NGX_HTTP_GZIP_PROXIED_NO_ETAG   0x0080
#define NGX_HTTP_GZIP_PROXIED_AUTH   0x0100
#define NGX_HTTP_GZIP_PROXIED_ANY   0x0200
#define NGX_HTTP_AIO_OFF   0
#define NGX_HTTP_AIO_ON   1
#define NGX_HTTP_AIO_SENDFILE   2
#define NGX_HTTP_SATISFY_ALL   0
#define NGX_HTTP_SATISFY_ANY   1
#define NGX_HTTP_LINGERING_OFF   0
#define NGX_HTTP_LINGERING_ON   1
#define NGX_HTTP_LINGERING_ALWAYS   2
#define NGX_HTTP_IMS_OFF   0
#define NGX_HTTP_IMS_EXACT   1
#define NGX_HTTP_IMS_BEFORE   2
#define NGX_HTTP_KEEPALIVE_DISABLE_NONE   0x0002
#define NGX_HTTP_KEEPALIVE_DISABLE_MSIE6   0x0004
#define NGX_HTTP_KEEPALIVE_DISABLE_SAFARI   0x0008
#define ngx_http_clear_content_length(r)
#define ngx_http_clear_accept_ranges(r)
#define ngx_http_clear_last_modified(r)
#define ngx_http_clear_location(r)
#define ngx_http_clear_etag(r)

Typedefs

typedef struct
ngx_http_location_tree_node_s 
ngx_http_location_tree_node_t
typedef struct
ngx_http_core_loc_conf_s 
ngx_http_core_loc_conf_t
typedef struct
ngx_http_phase_handler_s 
ngx_http_phase_handler_t
typedef ngx_int_t(* ngx_http_phase_handler_pt )(ngx_http_request_t *r, ngx_http_phase_handler_t *ph)
typedef ngx_int_t(* ngx_http_output_header_filter_pt )(ngx_http_request_t *r)
typedef ngx_int_t(* ngx_http_output_body_filter_pt )(ngx_http_request_t *r, ngx_chain_t *chain)

Enumerations

enum  ngx_http_phases {
  NGX_HTTP_POST_READ_PHASE = 0, NGX_HTTP_SERVER_REWRITE_PHASE, NGX_HTTP_FIND_CONFIG_PHASE, NGX_HTTP_REWRITE_PHASE,
  NGX_HTTP_POST_REWRITE_PHASE, NGX_HTTP_PREACCESS_PHASE, NGX_HTTP_ACCESS_PHASE, NGX_HTTP_POST_ACCESS_PHASE,
  NGX_HTTP_TRY_FILES_PHASE, NGX_HTTP_CONTENT_PHASE, NGX_HTTP_LOG_PHASE
}

Functions

void ngx_http_core_run_phases (ngx_http_request_t *r)
ngx_int_t ngx_http_core_generic_phase (ngx_http_request_t *r, ngx_http_phase_handler_t *ph)
ngx_int_t ngx_http_core_rewrite_phase (ngx_http_request_t *r, ngx_http_phase_handler_t *ph)
ngx_int_t ngx_http_core_find_config_phase (ngx_http_request_t *r, ngx_http_phase_handler_t *ph)
ngx_int_t ngx_http_core_post_rewrite_phase (ngx_http_request_t *r, ngx_http_phase_handler_t *ph)
ngx_int_t ngx_http_core_access_phase (ngx_http_request_t *r, ngx_http_phase_handler_t *ph)
ngx_int_t ngx_http_core_post_access_phase (ngx_http_request_t *r, ngx_http_phase_handler_t *ph)
ngx_int_t ngx_http_core_try_files_phase (ngx_http_request_t *r, ngx_http_phase_handler_t *ph)
ngx_int_t ngx_http_core_content_phase (ngx_http_request_t *r, ngx_http_phase_handler_t *ph)
void * ngx_http_test_content_type (ngx_http_request_t *r, ngx_hash_t *types_hash)
ngx_int_t ngx_http_set_content_type (ngx_http_request_t *r)
void ngx_http_set_exten (ngx_http_request_t *r)
ngx_int_t ngx_http_set_etag (ngx_http_request_t *r)
ngx_int_t ngx_http_send_response (ngx_http_request_t *r, ngx_uint_t status, ngx_str_t *ct, ngx_http_complex_value_t *cv)
u_char * ngx_http_map_uri_to_path (ngx_http_request_t *r, ngx_str_t *name, size_t *root_length, size_t reserved)
ngx_int_t ngx_http_auth_basic_user (ngx_http_request_t *r)
ngx_int_t ngx_http_subrequest (ngx_http_request_t *r, ngx_str_t *uri, ngx_str_t *args, ngx_http_request_t **sr, ngx_http_post_subrequest_t *psr, ngx_uint_t flags)
ngx_int_t ngx_http_internal_redirect (ngx_http_request_t *r, ngx_str_t *uri, ngx_str_t *args)
ngx_int_t ngx_http_named_location (ngx_http_request_t *r, ngx_str_t *name)
ngx_http_cleanup_tngx_http_cleanup_add (ngx_http_request_t *r, size_t size)
ngx_int_t ngx_http_output_filter (ngx_http_request_t *r, ngx_chain_t *chain)
ngx_int_t ngx_http_write_filter (ngx_http_request_t *r, ngx_chain_t *chain)
ngx_int_t ngx_http_set_disable_symlinks (ngx_http_request_t *r, ngx_http_core_loc_conf_t *clcf, ngx_str_t *path, ngx_open_file_info_t *of)
ngx_int_t ngx_http_get_forwarded_addr (ngx_http_request_t *r, ngx_addr_t *addr, ngx_array_t *headers, ngx_str_t *value, ngx_array_t *proxies, int recursive)

Variables

ngx_module_t ngx_http_core_module
ngx_uint_t ngx_http_max_module
ngx_str_t ngx_http_core_get_method

Macro Definition Documentation

#define NGX_HTTP_AIO_OFF   0

Definition at line 28 of file ngx_http_core_module.h.

#define NGX_HTTP_AIO_ON   1

Definition at line 29 of file ngx_http_core_module.h.

#define NGX_HTTP_AIO_SENDFILE   2

Definition at line 30 of file ngx_http_core_module.h.

#define ngx_http_clear_accept_ranges (   r)
Value:
\
r->allow_ranges = 0; \
if (r->headers_out.accept_ranges) { \
r->headers_out.accept_ranges->hash = 0; \
r->headers_out.accept_ranges = NULL; \
}

Definition at line 552 of file ngx_http_core_module.h.

#define ngx_http_clear_content_length (   r)
Value:
\
r->headers_out.content_length_n = -1; \
if (r->headers_out.content_length) { \
r->headers_out.content_length->hash = 0; \
r->headers_out.content_length = NULL; \
}

Definition at line 544 of file ngx_http_core_module.h.

#define ngx_http_clear_etag (   r)
Value:
\
if (r->headers_out.etag) { \
r->headers_out.etag->hash = 0; \
r->headers_out.etag = NULL; \
}

Definition at line 575 of file ngx_http_core_module.h.

#define ngx_http_clear_last_modified (   r)
Value:
\
r->headers_out.last_modified_time = -1; \
if (r->headers_out.last_modified) { \
r->headers_out.last_modified->hash = 0; \
r->headers_out.last_modified = NULL; \
}

Definition at line 560 of file ngx_http_core_module.h.

#define ngx_http_clear_location (   r)
Value:
\
if (r->headers_out.location) { \
r->headers_out.location->hash = 0; \
r->headers_out.location = NULL; \
}

Definition at line 568 of file ngx_http_core_module.h.

#define NGX_HTTP_GZIP_PROXIED_ANY   0x0200

Definition at line 25 of file ngx_http_core_module.h.

#define NGX_HTTP_GZIP_PROXIED_AUTH   0x0100

Definition at line 24 of file ngx_http_core_module.h.

#define NGX_HTTP_GZIP_PROXIED_EXPIRED   0x0004

Definition at line 18 of file ngx_http_core_module.h.

#define NGX_HTTP_GZIP_PROXIED_NO_CACHE   0x0008

Definition at line 19 of file ngx_http_core_module.h.

#define NGX_HTTP_GZIP_PROXIED_NO_ETAG   0x0080

Definition at line 23 of file ngx_http_core_module.h.

#define NGX_HTTP_GZIP_PROXIED_NO_LM   0x0040

Definition at line 22 of file ngx_http_core_module.h.

#define NGX_HTTP_GZIP_PROXIED_NO_STORE   0x0010

Definition at line 20 of file ngx_http_core_module.h.

#define NGX_HTTP_GZIP_PROXIED_OFF   0x0002

Definition at line 17 of file ngx_http_core_module.h.

#define NGX_HTTP_GZIP_PROXIED_PRIVATE   0x0020

Definition at line 21 of file ngx_http_core_module.h.

#define NGX_HTTP_IMS_BEFORE   2

Definition at line 44 of file ngx_http_core_module.h.

#define NGX_HTTP_IMS_EXACT   1

Definition at line 43 of file ngx_http_core_module.h.

#define NGX_HTTP_IMS_OFF   0

Definition at line 42 of file ngx_http_core_module.h.

#define NGX_HTTP_KEEPALIVE_DISABLE_MSIE6   0x0004

Definition at line 48 of file ngx_http_core_module.h.

#define NGX_HTTP_KEEPALIVE_DISABLE_NONE   0x0002

Definition at line 47 of file ngx_http_core_module.h.

#define NGX_HTTP_KEEPALIVE_DISABLE_SAFARI   0x0008

Definition at line 49 of file ngx_http_core_module.h.

#define NGX_HTTP_LINGERING_ALWAYS   2

Definition at line 39 of file ngx_http_core_module.h.

#define NGX_HTTP_LINGERING_OFF   0

Definition at line 37 of file ngx_http_core_module.h.

#define NGX_HTTP_LINGERING_ON   1

Definition at line 38 of file ngx_http_core_module.h.

#define NGX_HTTP_SATISFY_ALL   0

Definition at line 33 of file ngx_http_core_module.h.

#define NGX_HTTP_SATISFY_ANY   1

Definition at line 34 of file ngx_http_core_module.h.

Typedef Documentation

Definition at line 53 of file ngx_http_core_module.h.

Definition at line 52 of file ngx_http_core_module.h.

typedef ngx_int_t(* ngx_http_output_body_filter_pt)(ngx_http_request_t *r, ngx_chain_t *chain)

Definition at line 522 of file ngx_http_core_module.h.

typedef ngx_int_t(* ngx_http_output_header_filter_pt)(ngx_http_request_t *r)

Definition at line 520 of file ngx_http_core_module.h.

typedef ngx_int_t(* ngx_http_phase_handler_pt)(ngx_http_request_t *r, ngx_http_phase_handler_t *ph)

Definition at line 131 of file ngx_http_core_module.h.

Definition at line 129 of file ngx_http_core_module.h.

Enumeration Type Documentation

Enumerator:
NGX_HTTP_POST_READ_PHASE 
NGX_HTTP_SERVER_REWRITE_PHASE 
NGX_HTTP_FIND_CONFIG_PHASE 
NGX_HTTP_REWRITE_PHASE 
NGX_HTTP_POST_REWRITE_PHASE 
NGX_HTTP_PREACCESS_PHASE 
NGX_HTTP_ACCESS_PHASE 
NGX_HTTP_POST_ACCESS_PHASE 
NGX_HTTP_TRY_FILES_PHASE 
NGX_HTTP_CONTENT_PHASE 
NGX_HTTP_LOG_PHASE 

Definition at line 109 of file ngx_http_core_module.h.

Function Documentation

ngx_int_t ngx_http_auth_basic_user ( ngx_http_request_t r)

Definition at line 2045 of file ngx_http_core_module.c.

Here is the call graph for this function:

ngx_http_cleanup_t* ngx_http_cleanup_add ( ngx_http_request_t r,
size_t  size 
)

Definition at line 2675 of file ngx_http_core_module.c.

Here is the call graph for this function:

ngx_int_t ngx_http_core_access_phase ( ngx_http_request_t r,
ngx_http_phase_handler_t ph 
)

Definition at line 1101 of file ngx_http_core_module.c.

Here is the call graph for this function:

ngx_int_t ngx_http_core_content_phase ( ngx_http_request_t r,
ngx_http_phase_handler_t ph 
)

Definition at line 1399 of file ngx_http_core_module.c.

Here is the call graph for this function:

ngx_int_t ngx_http_core_find_config_phase ( ngx_http_request_t r,
ngx_http_phase_handler_t ph 
)

Definition at line 962 of file ngx_http_core_module.c.

Here is the call graph for this function:

ngx_int_t ngx_http_core_generic_phase ( ngx_http_request_t r,
ngx_http_phase_handler_t ph 
)

Definition at line 898 of file ngx_http_core_module.c.

Here is the call graph for this function:

ngx_int_t ngx_http_core_post_access_phase ( ngx_http_request_t r,
ngx_http_phase_handler_t ph 
)

Definition at line 1162 of file ngx_http_core_module.c.

Here is the call graph for this function:

ngx_int_t ngx_http_core_post_rewrite_phase ( ngx_http_request_t r,
ngx_http_phase_handler_t ph 
)

Definition at line 1057 of file ngx_http_core_module.c.

Here is the call graph for this function:

ngx_int_t ngx_http_core_rewrite_phase ( ngx_http_request_t r,
ngx_http_phase_handler_t ph 
)

Definition at line 935 of file ngx_http_core_module.c.

Here is the call graph for this function:

void ngx_http_core_run_phases ( ngx_http_request_t r)

Definition at line 876 of file ngx_http_core_module.c.

Here is the caller graph for this function:

ngx_int_t ngx_http_core_try_files_phase ( ngx_http_request_t r,
ngx_http_phase_handler_t ph 
)

Definition at line 1189 of file ngx_http_core_module.c.

Here is the call graph for this function:

ngx_int_t ngx_http_get_forwarded_addr ( ngx_http_request_t r,
ngx_addr_t addr,
ngx_array_t headers,
ngx_str_t value,
ngx_array_t proxies,
int  recursive 
)

Definition at line 2759 of file ngx_http_core_module.c.

ngx_int_t ngx_http_internal_redirect ( ngx_http_request_t r,
ngx_str_t uri,
ngx_str_t args 
)

Definition at line 2552 of file ngx_http_core_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

u_char* ngx_http_map_uri_to_path ( ngx_http_request_t r,
ngx_str_t name,
size_t *  root_length,
size_t  reserved 
)

Definition at line 1968 of file ngx_http_core_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_http_named_location ( ngx_http_request_t r,
ngx_str_t name 
)

Definition at line 2607 of file ngx_http_core_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_http_output_filter ( ngx_http_request_t r,
ngx_chain_t chain 
)

Definition at line 1946 of file ngx_http_core_module.c.

Here is the caller graph for this function:

ngx_int_t ngx_http_send_response ( ngx_http_request_t r,
ngx_uint_t  status,
ngx_str_t ct,
ngx_http_complex_value_t cv 
)

Definition at line 1856 of file ngx_http_core_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_http_set_content_type ( ngx_http_request_t r)

Definition at line 1740 of file ngx_http_core_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_http_set_disable_symlinks ( ngx_http_request_t r,
ngx_http_core_loc_conf_t clcf,
ngx_str_t path,
ngx_open_file_info_t of 
)

Definition at line 2709 of file ngx_http_core_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_http_set_etag ( ngx_http_request_t r)

Definition at line 1820 of file ngx_http_core_module.c.

Here is the call graph for this function:

void ngx_http_set_exten ( ngx_http_request_t r)

Definition at line 1796 of file ngx_http_core_module.c.

Here is the caller graph for this function:

ngx_int_t ngx_http_subrequest ( ngx_http_request_t r,
ngx_str_t uri,
ngx_str_t args,
ngx_http_request_t **  sr,
ngx_http_post_subrequest_t psr,
ngx_uint_t  flags 
)

Definition at line 2418 of file ngx_http_core_module.c.

Here is the call graph for this function:

void* ngx_http_test_content_type ( ngx_http_request_t r,
ngx_hash_t types_hash 
)

Definition at line 1698 of file ngx_http_core_module.c.

Here is the call graph for this function:

ngx_int_t ngx_http_write_filter ( ngx_http_request_t r,
ngx_chain_t chain 
)

Definition at line 48 of file ngx_http_write_filter_module.c.

Here is the call graph for this function:

Variable Documentation

ngx_str_t ngx_http_core_get_method

Definition at line 827 of file ngx_http_core_module.c.

ngx_module_t ngx_http_core_module

Definition at line 811 of file ngx_http_core_module.c.

ngx_uint_t ngx_http_max_module

Definition at line 69 of file ngx_http.c.