Apache HTTPD
Classes | Functions | Variables
mod_proxy_wstunnel.c File Reference
#include "mod_proxy.h"
#include "http_config.h"

Go to the source code of this file.

Classes

struct  proxyws_dir_conf
 

Functions

static int proxy_wstunnel_check_trans (request_rec *r, const char *url)
 
static int proxy_wstunnel_canon (request_rec *r, char *url)
 
static int proxy_wstunnel_request (apr_pool_t *p, request_rec *r, proxy_conn_rec *conn, proxy_worker *worker, proxy_server_conf *conf, apr_uri_t *uri, char *url, char *server_portstr)
 
static int proxy_wstunnel_handler (request_rec *r, proxy_worker *worker, proxy_server_conf *conf, char *url, const char *proxyname, apr_port_t proxyport)
 
static void * create_proxyws_dir_config (apr_pool_t *p, char *dummy)
 
static void * merge_proxyws_dir_config (apr_pool_t *p, void *vbase, void *vadd)
 
static const charproxyws_fallback_to_proxy_http (cmd_parms *cmd, void *conf, int arg)
 
static int proxy_wstunnel_post_config (apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
 
static void ws_proxy_hooks (apr_pool_t *p)
 

Variables

static int can_fallback_to_proxy_http
 
static const command_rec ws_proxy_cmds []
 
static int *const aplog_module_index = &( proxy_wstunnel_module.module_index)
 

Function Documentation

◆ create_proxyws_dir_config()

static void * create_proxyws_dir_config ( apr_pool_t p,
char dummy 
)
static

Definition at line 445 of file mod_proxy_wstunnel.c.

◆ merge_proxyws_dir_config()

static void * merge_proxyws_dir_config ( apr_pool_t p,
void *  vbase,
void *  vadd 
)
static

Definition at line 455 of file mod_proxy_wstunnel.c.

◆ proxy_wstunnel_canon()

static int proxy_wstunnel_canon ( request_rec r,
char url 
)
static

< Module declines to handle

< Module declines to handle

< Module has handled this stage.

Definition at line 61 of file mod_proxy_wstunnel.c.

◆ proxy_wstunnel_check_trans()

static int proxy_wstunnel_check_trans ( request_rec r,
const char url 
)
static

< Module declines to handle

< Module declines to handle

< Module has handled this stage.

Definition at line 29 of file mod_proxy_wstunnel.c.

◆ proxy_wstunnel_handler()

static int proxy_wstunnel_handler ( request_rec r,
proxy_worker worker,
proxy_server_conf conf,
char url,
const char proxyname,
apr_port_t  proxyport 
)
static

< Module declines to handle

< Module declines to handle

< Module has handled this stage.

< Module has handled this stage.

< Module has handled this stage.

Definition at line 346 of file mod_proxy_wstunnel.c.

◆ proxy_wstunnel_post_config()

static int proxy_wstunnel_post_config ( apr_pool_t pconf,
apr_pool_t plog,
apr_pool_t ptemp,
server_rec s 
)
static

< Module has handled this stage.

Definition at line 477 of file mod_proxy_wstunnel.c.

◆ proxy_wstunnel_request()

static int proxy_wstunnel_request ( apr_pool_t p,
request_rec r,
proxy_conn_rec conn,
proxy_worker worker,
proxy_server_conf conf,
apr_uri_t uri,
char url,
char server_portstr 
)
static

< Module has handled this stage.

< Module has handled this stage.

< Can read without blocking

< Hangup occurred

< Can read without blocking

< Hangup occurred

< Pending error

< Can read without blocking

< Hangup occurred

< Pending error

< Module has handled this stage.

< Module has handled this stage.

Definition at line 163 of file mod_proxy_wstunnel.c.

◆ proxyws_fallback_to_proxy_http()

static const char * proxyws_fallback_to_proxy_http ( cmd_parms cmd,
void *  conf,
int  arg 
)
static

Definition at line 469 of file mod_proxy_wstunnel.c.

◆ ws_proxy_hooks()

static void ws_proxy_hooks ( apr_pool_t p)
static

Definition at line 496 of file mod_proxy_wstunnel.c.

Variable Documentation

◆ aplog_module_index

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

Definition at line 505 of file mod_proxy_wstunnel.c.

◆ can_fallback_to_proxy_http

int can_fallback_to_proxy_http
static

Definition at line 27 of file mod_proxy_wstunnel.c.

◆ ws_proxy_cmds

const command_rec ws_proxy_cmds[]
static
Initial value:
=
{
{ "ProxyWebsocketFallbackToProxyHttp" , proxyws_fallback_to_proxy_http , NULL , 128 | 64 , FLAG, "whether to let mod_proxy_http handle the upgrade and tunneling, " "On by default" },
{NULL}
}
@ FLAG
Definition http_config.h:59
static const char * proxyws_fallback_to_proxy_http(cmd_parms *cmd, void *conf, int arg)
return NULL
Definition mod_so.c:359

Definition at line 486 of file mod_proxy_wstunnel.c.