<-
Apache > HTTP Server > Documentation > Modules

Apache Module mod_reflector 5v2s2x

Available Languages:  fr 

Description: Reflect a request body as a response via the output filter stack.
Status: Base
Module Identifier: reflector_module
Source File: mod_reflector.c
Compatibility: Version 2.3 and later

Summary 6m2os

This module allows request bodies to be reflected back to the client, in the process ing the request through the output filter stack. A suitably configured chain of filters can be used to transform the request into a response. This module can be used to turn an output filter into an HTTP service.

 Apache!

Topics 2c136y

Directives 1a4l6m

Bugfix checklist 4i2533

See also 27136x

top

Examples 412u42

Compression service
the request body through the DEFLATE filter to compress the body. This request requires a Content-Encoding request header containing "gzip" for the filter to return compressed data.
<Location "/compress">
    SetHandler reflector
    SetOutputFilter DEFLATE
</Location>
Image downsampling service
the request body through an image downsampling filter, and reflect the results to the caller.
<Location "/downsample">
    SetHandler reflector
    SetOutputFilter DOWNSAMPLE
</Location>
top

ReflectorHeader Directive 3o2m1o

Description: Reflect an input header to the output headers
Syntax: ReflectorHeader inputheader [outputheader]
Context: server config, virtual host, directory, .htaccess
Override: Options
Status: Base
Module: mod_reflector

This directive controls the reflection of request headers to the response. The first argument is the name of the request header to copy. If the optional second argument is specified, it will be used as the name of the response header, otherwise the original request header name will be used.

Available Languages:  fr 

top

Comments 2p1l6j

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our s if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our mailing lists.