module Redirect
Provides an environment for redirecting insecure web traffic to a secure endpoint.
Definitions
def environments
The services we will redirect to.
Signature
-
returns
Array(Async::Service::Environment)
Implementation
def environments
[]
end
def middleware
Load the class Falcon::Middleware::Redirect
application with the specified hosts.
Implementation
def middleware
Middleware::Redirect.new(Middleware::NotFound, hosts, redirect_endpoint)
end