Apache2
ap_filter_rec_t Struct Reference

This structure is used for recording information about the registered filters. It associates a name with the filter's callback and filter type. More...

#include <util_filter.h>

Collaboration diagram for ap_filter_rec_t:

Data Fields

const char * name
 
ap_filter_func filter_func
 
ap_init_filter_func filter_init_func
 
struct ap_filter_rec_tnext
 
ap_filter_provider_tproviders
 
ap_filter_type ftype
 
int debug
 
unsigned int proto_flags
 
ap_filter_direction_e direction
 

Detailed Description

This structure is used for recording information about the registered filters. It associates a name with the filter's callback and filter type.

At the moment, these are simply linked in a chain, so a ->next pointer is available.

It is used for any filter that can be inserted in the filter chain. This may be either a httpd-2.0 filter or a mod_filter harness. In the latter case it contains dispatch, provider and protocol information. In the former case, the new fields (from dispatch) are ignored.

Field Documentation

◆ debug

int ap_filter_rec_t::debug

Trace level for this filter

◆ direction

ap_filter_direction_e ap_filter_rec_t::direction

Whether the filter is an input or output filter

◆ filter_func

ap_filter_func ap_filter_rec_t::filter_func

The function to call when this filter is invoked.

◆ filter_init_func

ap_init_filter_func ap_filter_rec_t::filter_init_func

The function to call directly before the handlers are invoked for a request. The init function is called once directly before running the handlers for a request or subrequest. The init function is never called for a connection filter (with ftype >= AP_FTYPE_CONNECTION). Any use of this function for filters for protocols other than HTTP is specified by the module supported that protocol.

◆ ftype

ap_filter_type ap_filter_rec_t::ftype

The type of filter, either AP_FTYPE_CONTENT or AP_FTYPE_CONNECTION. An AP_FTYPE_CONTENT filter modifies the data based on information found in the content. An AP_FTYPE_CONNECTION filter modifies the data based on the type of connection.

◆ name

const char* ap_filter_rec_t::name

The registered name for this filter

◆ next

struct ap_filter_rec_t* ap_filter_rec_t::next

The next filter_rec in the list

◆ proto_flags

unsigned int ap_filter_rec_t::proto_flags

Protocol flags for this filter

◆ providers

ap_filter_provider_t* ap_filter_rec_t::providers

Providers for this filter


The documentation for this struct was generated from the following file: