Module redirector

Source
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 request to the appropriate target URL (if one is found in the store) or returns a 404 Not Found response. When redirecting, the status code is 302 Found when the method is GET, and 307 Temporary Redirect otherwise. Additionally, stat_info can be used to pass extra Statistics to be collected in addition to the ones inside of this function.