module Middleware

Nested Classes and Modules

module BadRequest

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

class Proxy

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

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

class Verbose

A HTTP middleware for logging requests and responses.