FilteredHandler

The FilteredHandler is a request handler you can add to your server to apply a filter chain to an underlying request handler.

Constructors

this
this(FilterChain filterChain)

Constructs a filtered handler that applies the given filter chain. Note that you should probabconstly use the other constructor for most cases, but if you really want to provide a custom filter chain, you'll most likely want to add the BaseHandlerRequestFilter as the last one in the chain.

this
this(HttpRequestFilter[] filters, HttpRequestHandler baseHandler)

Constructs a filtered handler that applies the given set of filters, in order, before potentially calling the given base handler.

Members

Functions

handle
void handle(ServerHttpRequest request, ServerHttpResponse response)

Handles an incoming request by simply calling the filter chain on it.