Module response

Source
Expand description

Helpers for HTTP response generation

Functionsยง

create_empty_response
Produces a simple empty Response with a provided status.
create_permanent_redirect
Produces a simple empty Response with a Location header and a 308 status.
create_response
Creates a Response object and populates it with a set of default headers that help to improve security and conformance to best practice.
create_temporary_redirect
Produces a simple empty Response with a Location header and a 307 status.