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_upstream.h File Reference
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
#include <ngx_event_connect.h>
#include <ngx_event_pipe.h>
#include <ngx_http.h>
Include dependency graph for ngx_http_upstream.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_upstream_state_t
struct  ngx_http_upstream_main_conf_t
struct  ngx_http_upstream_peer_t
struct  ngx_http_upstream_server_t
struct  ngx_http_upstream_srv_conf_s
struct  ngx_http_upstream_local_t
struct  ngx_http_upstream_conf_t
struct  ngx_http_upstream_header_t
struct  ngx_http_upstream_headers_in_t
struct  ngx_http_upstream_resolved_t
struct  ngx_http_upstream_s
struct  ngx_http_upstream_next_t
struct  ngx_http_upstream_param_t

Macros

#define NGX_HTTP_UPSTREAM_FT_ERROR   0x00000002
#define NGX_HTTP_UPSTREAM_FT_TIMEOUT   0x00000004
#define NGX_HTTP_UPSTREAM_FT_INVALID_HEADER   0x00000008
#define NGX_HTTP_UPSTREAM_FT_HTTP_500   0x00000010
#define NGX_HTTP_UPSTREAM_FT_HTTP_502   0x00000020
#define NGX_HTTP_UPSTREAM_FT_HTTP_503   0x00000040
#define NGX_HTTP_UPSTREAM_FT_HTTP_504   0x00000080
#define NGX_HTTP_UPSTREAM_FT_HTTP_404   0x00000100
#define NGX_HTTP_UPSTREAM_FT_UPDATING   0x00000200
#define NGX_HTTP_UPSTREAM_FT_BUSY_LOCK   0x00000400
#define NGX_HTTP_UPSTREAM_FT_MAX_WAITING   0x00000800
#define NGX_HTTP_UPSTREAM_FT_NOLIVE   0x40000000
#define NGX_HTTP_UPSTREAM_FT_OFF   0x80000000
#define NGX_HTTP_UPSTREAM_FT_STATUS
#define NGX_HTTP_UPSTREAM_INVALID_HEADER   40
#define NGX_HTTP_UPSTREAM_IGN_XA_REDIRECT   0x00000002
#define NGX_HTTP_UPSTREAM_IGN_XA_EXPIRES   0x00000004
#define NGX_HTTP_UPSTREAM_IGN_EXPIRES   0x00000008
#define NGX_HTTP_UPSTREAM_IGN_CACHE_CONTROL   0x00000010
#define NGX_HTTP_UPSTREAM_IGN_SET_COOKIE   0x00000020
#define NGX_HTTP_UPSTREAM_IGN_XA_LIMIT_RATE   0x00000040
#define NGX_HTTP_UPSTREAM_IGN_XA_BUFFERING   0x00000080
#define NGX_HTTP_UPSTREAM_IGN_XA_CHARSET   0x00000100
#define NGX_HTTP_UPSTREAM_CREATE   0x0001
#define NGX_HTTP_UPSTREAM_WEIGHT   0x0002
#define NGX_HTTP_UPSTREAM_MAX_FAILS   0x0004
#define NGX_HTTP_UPSTREAM_FAIL_TIMEOUT   0x0008
#define NGX_HTTP_UPSTREAM_DOWN   0x0010
#define NGX_HTTP_UPSTREAM_BACKUP   0x0020
#define ngx_http_conf_upstream_srv_conf(uscf, module)   uscf->srv_conf[module.ctx_index]

Typedefs

typedef struct
ngx_http_upstream_srv_conf_s 
ngx_http_upstream_srv_conf_t
typedef ngx_int_t(* ngx_http_upstream_init_pt )(ngx_conf_t *cf, ngx_http_upstream_srv_conf_t *us)
typedef ngx_int_t(* ngx_http_upstream_init_peer_pt )(ngx_http_request_t *r, ngx_http_upstream_srv_conf_t *us)
typedef void(* ngx_http_upstream_handler_pt )(ngx_http_request_t *r, ngx_http_upstream_t *u)

Functions

ngx_int_t ngx_http_upstream_header_variable (ngx_http_request_t *r, ngx_http_variable_value_t *v, uintptr_t data)
ngx_int_t ngx_http_upstream_create (ngx_http_request_t *r)
void ngx_http_upstream_init (ngx_http_request_t *r)
ngx_http_upstream_srv_conf_tngx_http_upstream_add (ngx_conf_t *cf, ngx_url_t *u, ngx_uint_t flags)
char * ngx_http_upstream_bind_set_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
char * ngx_http_upstream_param_set_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
ngx_int_t ngx_http_upstream_hide_headers_hash (ngx_conf_t *cf, ngx_http_upstream_conf_t *conf, ngx_http_upstream_conf_t *prev, ngx_str_t *default_hide_headers, ngx_hash_init_t *hash)

Variables

ngx_module_t ngx_http_upstream_module
ngx_conf_bitmask_t ngx_http_upstream_cache_method_mask []
ngx_conf_bitmask_t ngx_http_upstream_ignore_headers_masks []

Macro Definition Documentation

#define ngx_http_conf_upstream_srv_conf (   uscf,
  module 
)    uscf->srv_conf[module.ctx_index]

Definition at line 370 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_BACKUP   0x0020

Definition at line 104 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_CREATE   0x0001

Definition at line 99 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_DOWN   0x0010

Definition at line 103 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_FAIL_TIMEOUT   0x0008

Definition at line 102 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_FT_BUSY_LOCK   0x00000400

Definition at line 29 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_FT_ERROR   0x00000002

Definition at line 20 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_FT_HTTP_404   0x00000100

Definition at line 27 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_FT_HTTP_500   0x00000010

Definition at line 23 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_FT_HTTP_502   0x00000020

Definition at line 24 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_FT_HTTP_503   0x00000040

Definition at line 25 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_FT_HTTP_504   0x00000080

Definition at line 26 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_FT_INVALID_HEADER   0x00000008

Definition at line 22 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_FT_MAX_WAITING   0x00000800

Definition at line 30 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_FT_NOLIVE   0x40000000

Definition at line 31 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_FT_OFF   0x80000000

Definition at line 32 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_FT_STATUS
#define NGX_HTTP_UPSTREAM_FT_TIMEOUT   0x00000004

Definition at line 21 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_FT_UPDATING   0x00000200

Definition at line 28 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_IGN_CACHE_CONTROL   0x00000010

Definition at line 46 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_IGN_EXPIRES   0x00000008

Definition at line 45 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_IGN_SET_COOKIE   0x00000020

Definition at line 47 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_IGN_XA_BUFFERING   0x00000080

Definition at line 49 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_IGN_XA_CHARSET   0x00000100

Definition at line 50 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_IGN_XA_EXPIRES   0x00000004

Definition at line 44 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_IGN_XA_LIMIT_RATE   0x00000040

Definition at line 48 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_IGN_XA_REDIRECT   0x00000002

Definition at line 43 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_INVALID_HEADER   40

Definition at line 40 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_MAX_FAILS   0x0004

Definition at line 101 of file ngx_http_upstream.h.

#define NGX_HTTP_UPSTREAM_WEIGHT   0x0002

Definition at line 100 of file ngx_http_upstream.h.

Typedef Documentation

typedef void(* ngx_http_upstream_handler_pt)(ngx_http_request_t *r, ngx_http_upstream_t *u)

Definition at line 264 of file ngx_http_upstream.h.

typedef ngx_int_t(* ngx_http_upstream_init_peer_pt)(ngx_http_request_t *r, ngx_http_upstream_srv_conf_t *us)

Definition at line 76 of file ngx_http_upstream.h.

typedef ngx_int_t(* ngx_http_upstream_init_pt)(ngx_conf_t *cf, ngx_http_upstream_srv_conf_t *us)

Definition at line 74 of file ngx_http_upstream.h.

Definition at line 72 of file ngx_http_upstream.h.

Function Documentation

ngx_http_upstream_srv_conf_t* ngx_http_upstream_add ( ngx_conf_t cf,
ngx_url_t u,
ngx_uint_t  flags 
)

Definition at line 4663 of file ngx_http_upstream.c.

Here is the call graph for this function:

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

Definition at line 4780 of file ngx_http_upstream.c.

Here is the call graph for this function:

ngx_int_t ngx_http_upstream_create ( ngx_http_request_t r)

Definition at line 399 of file ngx_http_upstream.c.

Here is the call graph for this function:

ngx_int_t ngx_http_upstream_header_variable ( ngx_http_request_t r,
ngx_http_variable_value_t v,
uintptr_t  data 
)

Definition at line 4373 of file ngx_http_upstream.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_http_upstream_hide_headers_hash ( ngx_conf_t cf,
ngx_http_upstream_conf_t conf,
ngx_http_upstream_conf_t prev,
ngx_str_t default_hide_headers,
ngx_hash_init_t hash 
)

Definition at line 4947 of file ngx_http_upstream.c.

Here is the call graph for this function:

void ngx_http_upstream_init ( ngx_http_request_t r)

Definition at line 434 of file ngx_http_upstream.c.

Here is the call graph for this function:

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

Definition at line 4903 of file ngx_http_upstream.c.

Here is the call graph for this function:

Variable Documentation

ngx_conf_bitmask_t ngx_http_upstream_cache_method_mask[]

Definition at line 377 of file ngx_http_upstream.c.

ngx_conf_bitmask_t ngx_http_upstream_ignore_headers_masks[]

Definition at line 385 of file ngx_http_upstream.c.

ngx_module_t ngx_http_upstream_module

Definition at line 321 of file ngx_http_upstream.c.