Apache HTTPD
Macros | Functions | Variables
ajp_header.c File Reference
#include "ajp_header.h"
#include "ajp.h"
#include "util_script.h"

Go to the source code of this file.

Macros

#define UNKNOWN_METHOD   (-1)
 

Functions

static const charlong_res_header_for_sc (int sc)
 
static int sc_for_req_header (const char *header_name)
 
static int sc_for_req_method_by_id (request_rec *r)
 
static apr_status_t ajp_marshal_into_msgb (ajp_msg_t *msg, request_rec *r, apr_uri_t *uri, const char *secret)
 
static int addit_dammit (void *v, const char *key, const char *val)
 
static apr_status_t ajp_unmarshal_response (ajp_msg_t *msg, request_rec *r, proxy_dir_conf *dconf)
 
apr_status_t ajp_send_header (apr_socket_t *sock, request_rec *r, apr_size_t buffsize, apr_uri_t *uri, const char *secret)
 
apr_status_t ajp_read_header (apr_socket_t *sock, request_rec *r, apr_size_t buffsize, ajp_msg_t **msg)
 
int ajp_parse_type (request_rec *r, ajp_msg_t *msg)
 
apr_status_t ajp_parse_header (request_rec *r, proxy_dir_conf *conf, ajp_msg_t *msg)
 
apr_status_t ajp_parse_data (request_rec *r, ajp_msg_t *msg, apr_uint16_t *len, char **ptr)
 
apr_status_t ajp_parse_reuse (request_rec *r, ajp_msg_t *msg, apr_byte_t *reuse)
 
apr_status_t ajp_alloc_data_msg (apr_pool_t *pool, char **ptr, apr_size_t *len, ajp_msg_t **msg)
 
apr_status_t ajp_send_data_msg (apr_socket_t *sock, ajp_msg_t *msg, apr_size_t len)
 

Variables

static int *const aplog_module_index = &( proxy_ajp_module.module_index)
 
static const charresponse_trans_headers []
 
static const unsigned char sc_for_req_method_table []
 

Macro Definition Documentation

◆ UNKNOWN_METHOD

#define UNKNOWN_METHOD   (-1)

Definition at line 49 of file ajp_header.c.

Function Documentation

◆ addit_dammit()

static int addit_dammit ( void *  v,
const char key,
const char val 
)
static

Definition at line 534 of file ajp_header.c.

◆ ajp_marshal_into_msgb()

static apr_status_t ajp_marshal_into_msgb ( ajp_msg_t msg,
request_rec r,
apr_uri_t uri,
const char secret 
)
static

Definition at line 217 of file ajp_header.c.

◆ ajp_unmarshal_response()

static apr_status_t ajp_unmarshal_response ( ajp_msg_t msg,
request_rec r,
proxy_dir_conf dconf 
)
static

Definition at line 540 of file ajp_header.c.

◆ long_res_header_for_sc()

static const char * long_res_header_for_sc ( int  sc)
static

Definition at line 38 of file ajp_header.c.

◆ sc_for_req_header()

static int sc_for_req_header ( const char header_name)
static

Definition at line 51 of file ajp_header.c.

◆ sc_for_req_method_by_id()

static int sc_for_req_method_by_id ( request_rec r)
static

no valid method

Definition at line 170 of file ajp_header.c.

Variable Documentation

◆ aplog_module_index

int* const aplog_module_index = &( proxy_ajp_module.module_index)
static

Definition at line 22 of file ajp_header.c.

◆ response_trans_headers

const char* response_trans_headers[]
static
Initial value:
= {
"Content-Type",
"Content-Language",
"Content-Length",
"Date",
"Last-Modified",
"Location",
"Set-Cookie",
"Set-Cookie2",
"Servlet-Engine",
"Status",
"WWW-Authenticate"
}

Definition at line 24 of file ajp_header.c.

◆ sc_for_req_method_table

const unsigned char sc_for_req_method_table[]
static
Initial value:
= {
(unsigned char)2 ,
(unsigned char)5 ,
(unsigned char)4 ,
(unsigned char)6 ,
0,
(unsigned char)1 ,
(unsigned char)7 ,
0,
(unsigned char)8 ,
(unsigned char)9 ,
(unsigned char)10 ,
(unsigned char)11 ,
(unsigned char)12 ,
(unsigned char)13 ,
(unsigned char)14 ,
(unsigned char)17 ,
(unsigned char)19 ,
(unsigned char)20 ,
(unsigned char)18 ,
(unsigned char)23 ,
(unsigned char)24 ,
(unsigned char)16 ,
(unsigned char)22 ,
(unsigned char)27 ,
(unsigned char)26 ,
(unsigned char)25 ,
0
}
apr_size_t size

Definition at line 140 of file ajp_header.c.