handy_http_handlers.filtered_handler

Defines a "filtered" request handler, that applies an ordered set of filters (otherwise known as a "filter chain") before and after handling a request, as a means of adding a simple middleware layer to HTTP request processing.

Members

Classes

BaseHandlerRequestFilter
class BaseHandlerRequestFilter

A simple base filter that should always sit at the bottom of the filter chain, which just calls a request handler.

FilterChain
class FilterChain

A filter chain is a singly-linked list that represents a series of filters to be applied when processing a request.

FilteredHandler
class FilteredHandler

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

Interfaces

HttpRequestFilter
interface HttpRequestFilter

A filter that can be applied to an HTTP request. If the filter determines that it's okay to continue processing the request, it should call filterChain.doFilter(request, response) to continue the chain. If the chain is not continued, request processing ends at this filter, and the current response is sent back to the client.