Skip to main content

FormDataRoutingRedirect

This exception is raised in debug mode if a routing redirect would cause the browser to drop the method or body. This happens when method is not GET, HEAD or OPTIONS and the status code is not 307 or 308.

Constructor

Signature

def FormDataRoutingRedirect(
request: [Request](../wrappers/request.md?sid=flask_wrappers_request)
) - > None

Parameters

NameTypeDescription
request[Request](../wrappers/request.md?sid=flask_wrappers_request)The incoming request object that caused the redirect.

Signature

def FormDataRoutingRedirect(
request: [Request](../wrappers/request.md?sid=flask_wrappers_request)
) - > null

Parameters

NameTypeDescription
request[Request](../wrappers/request.md?sid=flask_wrappers_request)The Flask request object that triggered the routing redirect. It is used to extract information about the original URL, the new URL, and the routing exception.