Apache HTTPD
Macros | Functions | Variables
http_core.c File Reference
#include "apr_strings.h"
#include "apr_thread_proc.h"
#include "apr_want.h"
#include "httpd.h"
#include "http_config.h"
#include "http_connection.h"
#include "http_core.h"
#include "http_protocol.h"
#include "http_request.h"
#include "util_filter.h"
#include "util_ebcdic.h"
#include "ap_mpm.h"
#include "scoreboard.h"
#include "mod_core.h"

Go to the source code of this file.

Macros

#define APR_WANT_STRFUNC
 

Functions

static const charset_keep_alive_timeout (cmd_parms *cmd, void *dummy, const char *arg)
 
static const charset_keep_alive (cmd_parms *cmd, void *dummy, int arg)
 
static const charset_keep_alive_max (cmd_parms *cmd, void *dummy, const char *arg)
 
static const charhttp_scheme (const request_rec *r)
 
static apr_port_t http_port (const request_rec *r)
 
static int ap_process_http_async_connection (conn_rec *c)
 
static int ap_process_http_sync_connection (conn_rec *c)
 
static int ap_process_http_connection (conn_rec *c)
 
static int http_create_request (request_rec *r)
 
static int http_send_options (request_rec *r)
 
static int http_post_config (apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
 
static void register_hooks (apr_pool_t *p)
 

Variables

ap_filter_rec_tap_http_input_filter_handle
 
ap_filter_rec_tap_http_header_filter_handle
 
ap_filter_rec_tap_chunk_filter_handle
 
ap_filter_rec_tap_http_outerror_filter_handle
 
ap_filter_rec_tap_byterange_filter_handle
 
const charap_multipart_boundary
 
static int async_mpm = 0
 
static const command_rec http_cmds []
 
static int *const aplog_module_index = &( http_module.module_index)
 

Macro Definition Documentation

◆ APR_WANT_STRFUNC

#define APR_WANT_STRFUNC

Definition at line 20 of file http_core.c.

Function Documentation

◆ ap_process_http_async_connection()

static int ap_process_http_async_connection ( conn_rec c)
static

< Module has handled this stage.

Definition at line 135 of file http_core.c.

◆ ap_process_http_connection()

static int ap_process_http_connection ( conn_rec c)
static

Definition at line 243 of file http_core.c.

◆ ap_process_http_sync_connection()

static int ap_process_http_sync_connection ( conn_rec c)
static

< Set on non-blocking sockets * (timeout != 0) on which the * previous read() did not fill a buffer * completely. the next apr_socket_recv() * will first call select()/poll() rather than * going straight into read(). (Can also * be set by an application to force a * select()/poll() call before the next * read, in cases where the app expects * that an immediate read would fail.)

< Module has handled this stage.

Definition at line 180 of file http_core.c.

◆ http_create_request()

static int http_create_request ( request_rec r)
static

< Module has handled this stage.

Definition at line 253 of file http_core.c.

◆ http_port()

static apr_port_t http_port ( const request_rec r)
static

Definition at line 126 of file http_core.c.

◆ http_post_config()

static int http_post_config ( apr_pool_t p,
apr_pool_t plog,
apr_pool_t ptemp,
server_rec s 
)
static

< Module has handled this stage.

Definition at line 278 of file http_core.c.

◆ http_scheme()

static const char * http_scheme ( const request_rec r)
static

Definition at line 113 of file http_core.c.

◆ http_send_options()

static int http_send_options ( request_rec r)
static

< Module has served the response completely * - it's safe to die() with no more output

< Module declines to handle

Definition at line 269 of file http_core.c.

◆ register_hooks()

static void register_hooks ( apr_pool_t p)
static

Definition at line 290 of file http_core.c.

◆ set_keep_alive()

static const char * set_keep_alive ( cmd_parms cmd,
void *  dummy,
int  arg 
)
static

< Forbidden in <Limit>

< Forbidden in <Directory>

< Forbidden in <Location>

< Forbidden in <Files> or <If>

< Forbidden in <Proxy>

Definition at line 78 of file http_core.c.

◆ set_keep_alive_max()

static const char * set_keep_alive_max ( cmd_parms cmd,
void *  dummy,
const char arg 
)
static

< Forbidden in <Limit>

< Forbidden in <Directory>

< Forbidden in <Location>

< Forbidden in <Files> or <If>

< Forbidden in <Proxy>

Definition at line 90 of file http_core.c.

◆ set_keep_alive_timeout()

static const char * set_keep_alive_timeout ( cmd_parms cmd,
void *  dummy,
const char arg 
)
static

< Forbidden in <Limit>

< Forbidden in <Directory>

< Forbidden in <Location>

< Forbidden in <Files> or <If>

< Forbidden in <Proxy>

Definition at line 51 of file http_core.c.

Variable Documentation

◆ aplog_module_index

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

Definition at line 318 of file http_core.c.

◆ async_mpm

int async_mpm = 0
static

Definition at line 49 of file http_core.c.

◆ http_cmds

const command_rec http_cmds[]
static
Initial value:
= {
{ "KeepAliveTimeout" , set_keep_alive_timeout , NULL , 128 , TAKE1, "Keep-Alive timeout duration (sec)" },
{ "MaxKeepAliveRequests" , set_keep_alive_max , NULL , 128 , TAKE1, "Maximum number of Keep-Alive requests per connection, " "or 0 for infinite" },
{ "KeepAlive" , set_keep_alive , NULL , 128 , FLAG, "Whether persistent connections should be On or Off" },
{ NULL }
}
@ TAKE1
Definition http_config.h:51
@ FLAG
Definition http_config.h:59
static const char * set_keep_alive_timeout(cmd_parms *cmd, void *dummy, const char *arg)
Definition http_core.c:51
static const char * set_keep_alive(cmd_parms *cmd, void *dummy, int arg)
Definition http_core.c:78
static const char * set_keep_alive_max(cmd_parms *cmd, void *dummy, const char *arg)
Definition http_core.c:90
return NULL
Definition mod_so.c:359

Definition at line 102 of file http_core.c.