Apache HTTPD
Macros | Functions
mod_proxy_uwsgi.c File Reference
#include "apr_strings.h"
#include "apr_hooks.h"
#include "apr_optional_hooks.h"
#include "apr_buckets.h"
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
#include "http_protocol.h"
#include "http_request.h"
#include "util_script.h"
#include "mod_proxy.h"

Go to the source code of this file.

Macros

#define APR_WANT_MEMFUNC
 
#define APR_WANT_STRFUNC
 
#define UWSGI_SCHEME   "uwsgi"
 
#define UWSGI_DEFAULT_PORT   3031
 

Functions

static int uwsgi_canon (request_rec *r, char *url)
 
static int uwsgi_send (proxy_conn_rec *conn, const char *buf, apr_size_t length, request_rec *r)
 
static int uwsgi_send_headers (request_rec *r, proxy_conn_rec *conn)
 
static int uwsgi_send_body (request_rec *r, proxy_conn_rec *conn)
 
static request_recmake_fake_req (conn_rec *c, request_rec *r)
 
static int uwsgi_response (request_rec *r, proxy_conn_rec *backend, proxy_server_conf *conf)
 
static int uwsgi_handler (request_rec *r, proxy_worker *worker, proxy_server_conf *conf, char *url, const char *proxyname, apr_port_t proxyport)
 
static void register_hooks (apr_pool_t *p)
 

Macro Definition Documentation

◆ APR_WANT_MEMFUNC

#define APR_WANT_MEMFUNC

Definition at line 37 of file mod_proxy_uwsgi.c.

◆ APR_WANT_STRFUNC

#define APR_WANT_STRFUNC

Definition at line 38 of file mod_proxy_uwsgi.c.

◆ UWSGI_DEFAULT_PORT

#define UWSGI_DEFAULT_PORT   3031

Definition at line 55 of file mod_proxy_uwsgi.c.

◆ UWSGI_SCHEME

#define UWSGI_SCHEME   "uwsgi"

Definition at line 54 of file mod_proxy_uwsgi.c.

Function Documentation

◆ make_fake_req()

static request_rec * make_fake_req ( conn_rec c,
request_rec r 
)
static

Definition at line 263 of file mod_proxy_uwsgi.c.

◆ register_hooks()

static void register_hooks ( apr_pool_t p)
static

Definition at line 586 of file mod_proxy_uwsgi.c.

◆ uwsgi_canon()

static int uwsgi_canon ( request_rec r,
char url 
)
static

< Module declines to handle

< Module has handled this stage.

Definition at line 60 of file mod_proxy_uwsgi.c.

◆ uwsgi_handler()

static int uwsgi_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 has handled this stage.

< Module has handled this stage.

< Module has handled this stage.

< Module has handled this stage.

< Module has handled this stage.

< Module has handled this stage.

< Module has handled this stage.

< Module has handled this stage.

Definition at line 500 of file mod_proxy_uwsgi.c.

◆ uwsgi_response()

static int uwsgi_response ( request_rec r,
proxy_conn_rec backend,
proxy_server_conf conf 
)
static

< Origin response

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

< Module has handled this stage.

Definition at line 300 of file mod_proxy_uwsgi.c.

◆ uwsgi_send()

static int uwsgi_send ( proxy_conn_rec conn,
const char buf,
apr_size_t  length,
request_rec r 
)
static

< Module has handled this stage.

Definition at line 120 of file mod_proxy_uwsgi.c.

◆ uwsgi_send_body()

static int uwsgi_send_body ( request_rec r,
proxy_conn_rec conn 
)
static

< Module has handled this stage.

< Module has handled this stage.

Definition at line 238 of file mod_proxy_uwsgi.c.

◆ uwsgi_send_headers()

static int uwsgi_send_headers ( request_rec r,
proxy_conn_rec conn 
)
static

Definition at line 148 of file mod_proxy_uwsgi.c.