#include "apr.h"
#include "apr_strings.h"
#include "apr_buckets.h"
#include "apr_lib.h"
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_protocol.h"
#include "http_log.h"
#include "http_request.h"
#include "mod_request.h"
Go to the source code of this file.
|
| static apr_status_t | bail_out_on_error (apr_bucket_brigade *bb, ap_filter_t *f, int http_error) |
| |
| static apr_status_t | keep_body_filter (ap_filter_t *f, apr_bucket_brigade *b, ap_input_mode_t mode, apr_read_type_e block, apr_off_t readbytes) |
| |
| static int | kept_body_filter_init (ap_filter_t *f) |
| |
| static apr_status_t | kept_body_filter (ap_filter_t *f, apr_bucket_brigade *b, ap_input_mode_t mode, apr_read_type_e block, apr_off_t readbytes) |
| |
| static int | request_is_filter_present (request_rec *r, ap_filter_rec_t *fn) |
| |
| static void | ap_request_insert_filter (request_rec *r) |
| |
| static void | ap_request_remove_filter (request_rec *r) |
| |
| static void * | create_request_dir_config (apr_pool_t *p, char *dummy) |
| |
| static void * | merge_request_dir_config (apr_pool_t *p, void *basev, void *addv) |
| |
| static const char * | set_kept_body_size (cmd_parms *cmd, void *dconf, const char *arg) |
| |
| static void | register_hooks (apr_pool_t *p) |
| |
◆ keep_body_ctx_t
◆ kept_body_ctx_t
◆ ap_request_insert_filter()
Insert filter hook.
Add the KEEP_BODY filter to the request, if the admin wants to keep the body using the KeptBodySize directive.
As a precaution, any pre-existing instances of either the kept_body or keep_body filters will be removed before the filter is added.
- Parameters
-
Definition at line 293 of file mod_request.c.
◆ ap_request_remove_filter()
◆ bail_out_on_error()
◆ create_request_dir_config()
◆ keep_body_filter()
This is the KEEP_BODY_INPUT filter for HTTP requests, for times when the body should be set aside for future use by other modules.
Definition at line 65 of file mod_request.c.
◆ kept_body_filter()
Filter to handle a kept body on subrequests.
If a body has been previously kept by the request, and if a subrequest wants to re-insert the body into the request, this input filter makes it happen.
Definition at line 198 of file mod_request.c.
◆ kept_body_filter_init()
Initialisation of filter to handle a kept body on subrequests.
If a body is to be reinserted into a subrequest, any chunking will have been removed from the body during storage. We need to change the request from Transfer-Encoding: chunked to an explicit Content-Length.
< Module has handled this stage.
Definition at line 177 of file mod_request.c.
◆ merge_request_dir_config()
| static void * merge_request_dir_config |
( |
apr_pool_t * |
p, |
|
|
void * |
basev, |
|
|
void * |
addv |
|
) |
| |
|
static |
◆ register_hooks()
◆ request_is_filter_present()
Check whether this filter is not already present.
Definition at line 270 of file mod_request.c.
◆ set_kept_body_size()
◆ aplog_module_index
| int* const aplog_module_index = &( request_module.module_index) |
|
static |
◆ keep_body_input_filter_handle
◆ kept_body_input_filter_handle
◆ request_cmds
Initial value:= {
}
static const char * set_kept_body_size(cmd_parms *cmd, void *dconf, const char *arg)
Definition at line 366 of file mod_request.c.