Expand description
The main part of links. This module contains code relating to actually redirecting requests.
Functionsยง
- https_
redirector - Redirects an incoming request to the same host and path, but with the
https
scheme. - redirector
- Redirects the
req
uest to the appropriate target URL (if one is found in thestore
) or returns a404 Not Found
response. When redirecting, the status code is302 Found
when the method is GET, and307 Temporary Redirect
otherwise. Additionally,stat_info
can be used to pass extraStatistic
s to be collected in addition to the ones inside of this function.