module Middleware

Classes and Modules

module BadRequest

A static middleware which always returns a 400 bad request response.

class Proxy < Protocol::HTTP::Middleware

A HTTP middleware for proxying requests to a given set of hosts. Typically used for implementing virtual servers.

module NotFound

A static middleware which always returns a 404 not found response.

class Redirect < Protocol::HTTP::Middleware

A HTTP middleware for redirecting a given set of hosts to a different endpoint. Typically used for implementing HTTP -> HTTPS redirects.

class Verbose < Protocol::HTTP::Middleware

A HTTP middleware for logging requests and responses.