module Redirection
A middleware which assists with redirecting from one path to another.
Classes and Modules
class ClientRedirect < Protocol::HTTP::MiddlewareA basic client-side redirect.
class DirectoryIndex < ClientRedirectRedirect urls that end with a
/, e.g. directories.class Errors < Protocol::HTTP::MiddlewareA middleware which performs internal redirects based on error status codes.
class Moved < ClientRedirectRewrite requests that match the given pattern to a new prefix.
class RequestFailure < StandardErrorAn error handler fails to redirect to a valid page.
class Rewrite < ClientRedirectRewrite requests that match the given pattern to a single destination.
Definitions
MAX_AGE = 3600*24
We cache 301 redirects for 24 hours.