Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Functions | Variables
ngx_http.h File Reference
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http_variables.h>
#include <ngx_http_config.h>
#include <ngx_http_request.h>
#include <ngx_http_script.h>
#include <ngx_http_upstream.h>
#include <ngx_http_upstream_round_robin.h>
#include <ngx_http_busy_lock.h>
#include <ngx_http_core_module.h>
Include dependency graph for ngx_http.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_log_ctx_s
struct  ngx_http_chunked_s
struct  ngx_http_status_t

Macros

#define ngx_http_get_module_ctx(r, module)   (r)->ctx[module.ctx_index]
#define ngx_http_set_ctx(r, c, module)   r->ctx[module.ctx_index] = c;
#define ngx_http_ephemeral(r)   (void *) (&r->uri_start)
#define NGX_HTTP_LAST   1
#define NGX_HTTP_FLUSH   2

Typedefs

typedef struct ngx_http_request_s ngx_http_request_t
typedef struct ngx_http_upstream_s ngx_http_upstream_t
typedef struct ngx_http_cache_s ngx_http_cache_t
typedef struct
ngx_http_file_cache_s 
ngx_http_file_cache_t
typedef struct ngx_http_log_ctx_s ngx_http_log_ctx_t
typedef struct ngx_http_chunked_s ngx_http_chunked_t
typedef ngx_int_t(* ngx_http_header_handler_pt )(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset)
typedef u_char *(* ngx_http_log_handler_pt )(ngx_http_request_t *r, ngx_http_request_t *sr, u_char *buf, size_t len)

Functions

ngx_int_t ngx_http_add_location (ngx_conf_t *cf, ngx_queue_t **locations, ngx_http_core_loc_conf_t *clcf)
ngx_int_t ngx_http_add_listen (ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf, ngx_http_listen_opt_t *lsopt)
void ngx_http_init_connection (ngx_connection_t *c)
void ngx_http_close_connection (ngx_connection_t *c)
ngx_int_t ngx_http_parse_request_line (ngx_http_request_t *r, ngx_buf_t *b)
ngx_int_t ngx_http_parse_uri (ngx_http_request_t *r)
ngx_int_t ngx_http_parse_complex_uri (ngx_http_request_t *r, ngx_uint_t merge_slashes)
ngx_int_t ngx_http_parse_status_line (ngx_http_request_t *r, ngx_buf_t *b, ngx_http_status_t *status)
ngx_int_t ngx_http_parse_unsafe_uri (ngx_http_request_t *r, ngx_str_t *uri, ngx_str_t *args, ngx_uint_t *flags)
ngx_int_t ngx_http_parse_header_line (ngx_http_request_t *r, ngx_buf_t *b, ngx_uint_t allow_underscores)
ngx_int_t ngx_http_parse_multi_header_lines (ngx_array_t *headers, ngx_str_t *name, ngx_str_t *value)
ngx_int_t ngx_http_arg (ngx_http_request_t *r, u_char *name, size_t len, ngx_str_t *value)
void ngx_http_split_args (ngx_http_request_t *r, ngx_str_t *uri, ngx_str_t *args)
ngx_int_t ngx_http_parse_chunked (ngx_http_request_t *r, ngx_buf_t *b, ngx_http_chunked_t *ctx)
ngx_http_request_tngx_http_create_request (ngx_connection_t *c)
ngx_int_t ngx_http_process_request_uri (ngx_http_request_t *r)
ngx_int_t ngx_http_process_request_header (ngx_http_request_t *r)
void ngx_http_process_request (ngx_http_request_t *r)
void ngx_http_update_location_config (ngx_http_request_t *r)
void ngx_http_handler (ngx_http_request_t *r)
void ngx_http_run_posted_requests (ngx_connection_t *c)
ngx_int_t ngx_http_post_request (ngx_http_request_t *r, ngx_http_posted_request_t *pr)
void ngx_http_finalize_request (ngx_http_request_t *r, ngx_int_t rc)
void ngx_http_free_request (ngx_http_request_t *r, ngx_int_t rc)
void ngx_http_empty_handler (ngx_event_t *wev)
void ngx_http_request_empty_handler (ngx_http_request_t *r)
ngx_int_t ngx_http_send_special (ngx_http_request_t *r, ngx_uint_t flags)
ngx_int_t ngx_http_read_client_request_body (ngx_http_request_t *r, ngx_http_client_body_handler_pt post_handler)
ngx_int_t ngx_http_send_header (ngx_http_request_t *r)
ngx_int_t ngx_http_special_response_handler (ngx_http_request_t *r, ngx_int_t error)
ngx_int_t ngx_http_filter_finalize_request (ngx_http_request_t *r, ngx_module_t *m, ngx_int_t error)
void ngx_http_clean_header (ngx_http_request_t *r)
time_t ngx_http_parse_time (u_char *value, size_t len)
size_t ngx_http_get_time (char *buf, time_t t)
ngx_int_t ngx_http_discard_request_body (ngx_http_request_t *r)
void ngx_http_discarded_request_body_handler (ngx_http_request_t *r)
void ngx_http_block_reading (ngx_http_request_t *r)
void ngx_http_test_reading (ngx_http_request_t *r)
char * ngx_http_types_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
char * ngx_http_merge_types (ngx_conf_t *cf, ngx_array_t **keys, ngx_hash_t *types_hash, ngx_array_t **prev_keys, ngx_hash_t *prev_types_hash, ngx_str_t *default_types)
ngx_int_t ngx_http_set_default_types (ngx_conf_t *cf, ngx_array_t **types, ngx_str_t *default_type)

Variables

ngx_module_t ngx_http_module
ngx_str_t ngx_http_html_default_types []
ngx_http_output_header_filter_pt ngx_http_top_header_filter
ngx_http_output_body_filter_pt ngx_http_top_body_filter

Macro Definition Documentation

#define ngx_http_ephemeral (   r)    (void *) (&r->uri_start)

Definition at line 132 of file ngx_http.h.

#define NGX_HTTP_FLUSH   2

Definition at line 136 of file ngx_http.h.

#define ngx_http_get_module_ctx (   r,
  module 
)    (r)->ctx[module.ctx_index]

Definition at line 79 of file ngx_http.h.

#define NGX_HTTP_LAST   1

Definition at line 135 of file ngx_http.h.

#define ngx_http_set_ctx (   r,
  c,
  module 
)    r->ctx[module.ctx_index] = c;

Definition at line 80 of file ngx_http.h.

Typedef Documentation

Definition at line 18 of file ngx_http.h.

Definition at line 21 of file ngx_http.h.

Definition at line 19 of file ngx_http.h.

typedef ngx_int_t(* ngx_http_header_handler_pt)(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset)

Definition at line 27 of file ngx_http.h.

Definition at line 20 of file ngx_http.h.

typedef u_char*(* ngx_http_log_handler_pt)(ngx_http_request_t *r, ngx_http_request_t *sr, u_char *buf, size_t len)

Definition at line 29 of file ngx_http.h.

Definition at line 16 of file ngx_http.h.

Definition at line 17 of file ngx_http.h.

Function Documentation

ngx_int_t ngx_http_add_listen ( ngx_conf_t cf,
ngx_http_core_srv_conf_t cscf,
ngx_http_listen_opt_t lsopt 
)

Definition at line 1140 of file ngx_http.c.

Here is the call graph for this function:

ngx_int_t ngx_http_add_location ( ngx_conf_t cf,
ngx_queue_t **  locations,
ngx_http_core_loc_conf_t clcf 
)

Definition at line 845 of file ngx_http.c.

Here is the call graph for this function:

ngx_int_t ngx_http_arg ( ngx_http_request_t r,
u_char *  name,
size_t  len,
ngx_str_t value 
)

Definition at line 1909 of file ngx_http_parse.c.

Here is the call graph for this function:

void ngx_http_block_reading ( ngx_http_request_t r)

Definition at line 2635 of file ngx_http_request.c.

Here is the caller graph for this function:

void ngx_http_clean_header ( ngx_http_request_t r)

Definition at line 519 of file ngx_http_special_response.c.

Here is the caller graph for this function:

void ngx_http_close_connection ( ngx_connection_t c)

Definition at line 3428 of file ngx_http_request.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_http_request_t* ngx_http_create_request ( ngx_connection_t c)

Definition at line 491 of file ngx_http_request.c.

Here is the call graph for this function:

ngx_int_t ngx_http_discard_request_body ( ngx_http_request_t r)

Definition at line 479 of file ngx_http_request_body.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void ngx_http_discarded_request_body_handler ( ngx_http_request_t r)

Definition at line 553 of file ngx_http_request_body.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void ngx_http_empty_handler ( ngx_event_t wev)

Definition at line 3205 of file ngx_http_request.c.

Here is the caller graph for this function:

ngx_int_t ngx_http_filter_finalize_request ( ngx_http_request_t r,
ngx_module_t m,
ngx_int_t  error 
)

Definition at line 479 of file ngx_http_special_response.c.

Here is the call graph for this function:

void ngx_http_finalize_request ( ngx_http_request_t r,
ngx_int_t  rc 
)

Definition at line 2199 of file ngx_http_request.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void ngx_http_free_request ( ngx_http_request_t r,
ngx_int_t  rc 
)

Definition at line 3327 of file ngx_http_request.c.

Here is the call graph for this function:

Here is the caller graph for this function:

size_t ngx_http_get_time ( char *  buf,
time_t  t 
)
void ngx_http_handler ( ngx_http_request_t r)

Definition at line 831 of file ngx_http_core_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void ngx_http_init_connection ( ngx_connection_t c)

Definition at line 195 of file ngx_http_request.c.

Here is the call graph for this function:

char* ngx_http_merge_types ( ngx_conf_t cf,
ngx_array_t **  keys,
ngx_hash_t types_hash,
ngx_array_t **  prev_keys,
ngx_hash_t prev_types_hash,
ngx_str_t default_types 
)

Definition at line 2017 of file ngx_http.c.

Here is the call graph for this function:

ngx_int_t ngx_http_parse_chunked ( ngx_http_request_t r,
ngx_buf_t b,
ngx_http_chunked_t ctx 
)

Definition at line 1972 of file ngx_http_parse.c.

ngx_int_t ngx_http_parse_complex_uri ( ngx_http_request_t r,
ngx_uint_t  merge_slashes 
)

Definition at line 1226 of file ngx_http_parse.c.

Here is the caller graph for this function:

ngx_int_t ngx_http_parse_header_line ( ngx_http_request_t r,
ngx_buf_t b,
ngx_uint_t  allow_underscores 
)

Definition at line 822 of file ngx_http_parse.c.

ngx_int_t ngx_http_parse_multi_header_lines ( ngx_array_t headers,
ngx_str_t name,
ngx_str_t value 
)

Definition at line 1836 of file ngx_http_parse.c.

Here is the call graph for this function:

ngx_int_t ngx_http_parse_request_line ( ngx_http_request_t r,
ngx_buf_t b 
)

Definition at line 104 of file ngx_http_parse.c.

ngx_int_t ngx_http_parse_status_line ( ngx_http_request_t r,
ngx_buf_t b,
ngx_http_status_t status 
)

Definition at line 1565 of file ngx_http_parse.c.

time_t ngx_http_parse_time ( u_char *  value,
size_t  len 
)

Definition at line 16 of file ngx_http_parse_time.c.

ngx_int_t ngx_http_parse_unsafe_uri ( ngx_http_request_t r,
ngx_str_t uri,
ngx_str_t args,
ngx_uint_t flags 
)

Definition at line 1775 of file ngx_http_parse.c.

Here is the call graph for this function:

ngx_int_t ngx_http_parse_uri ( ngx_http_request_t r)

Definition at line 1078 of file ngx_http_parse.c.

ngx_int_t ngx_http_post_request ( ngx_http_request_t r,
ngx_http_posted_request_t pr 
)

Definition at line 2176 of file ngx_http_request.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void ngx_http_process_request ( ngx_http_request_t r)

Definition at line 1776 of file ngx_http_request.c.

Here is the call graph for this function:

ngx_int_t ngx_http_process_request_header ( ngx_http_request_t r)

Definition at line 1706 of file ngx_http_request.c.

Here is the call graph for this function:

ngx_int_t ngx_http_process_request_uri ( ngx_http_request_t r)

Definition at line 1004 of file ngx_http_request.c.

Here is the call graph for this function:

ngx_int_t ngx_http_read_client_request_body ( ngx_http_request_t r,
ngx_http_client_body_handler_pt  post_handler 
)

Definition at line 32 of file ngx_http_request_body.c.

Here is the call graph for this function:

void ngx_http_request_empty_handler ( ngx_http_request_t r)

Definition at line 3214 of file ngx_http_request.c.

Here is the caller graph for this function:

void ngx_http_run_posted_requests ( ngx_connection_t c)

Definition at line 2141 of file ngx_http_request.c.

Here is the caller graph for this function:

ngx_int_t ngx_http_send_header ( ngx_http_request_t r)

Definition at line 1934 of file ngx_http_core_module.c.

Here is the caller graph for this function:

ngx_int_t ngx_http_send_special ( ngx_http_request_t r,
ngx_uint_t  flags 
)

Definition at line 3224 of file ngx_http_request.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_http_set_default_types ( ngx_conf_t cf,
ngx_array_t **  types,
ngx_str_t default_type 
)

Definition at line 2082 of file ngx_http.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_http_special_response_handler ( ngx_http_request_t r,
ngx_int_t  error 
)

Definition at line 366 of file ngx_http_special_response.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void ngx_http_split_args ( ngx_http_request_t r,
ngx_str_t uri,
ngx_str_t args 
)

Definition at line 1951 of file ngx_http_parse.c.

Here is the caller graph for this function:

void ngx_http_test_reading ( ngx_http_request_t r)

Definition at line 2653 of file ngx_http_request.c.

Here is the call graph for this function:

char* ngx_http_types_slot ( ngx_conf_t cf,
ngx_command_t cmd,
void *  conf 
)

Definition at line 1944 of file ngx_http.c.

Here is the call graph for this function:

void ngx_http_update_location_config ( ngx_http_request_t r)

Definition at line 1452 of file ngx_http_core_module.c.

Here is the caller graph for this function:

Variable Documentation

ngx_str_t ngx_http_html_default_types[]

Definition at line 76 of file ngx_http.c.

ngx_module_t ngx_http_module

Definition at line 102 of file ngx_http.c.

ngx_http_output_body_filter_pt ngx_http_top_body_filter

Definition at line 73 of file ngx_http.c.

ngx_http_output_header_filter_pt ngx_http_top_header_filter

Definition at line 72 of file ngx_http.c.