OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, new_url) |
def | get_response (self, environ=None) |
![]() | |
def | __init__ (self, description=None, response=None) |
def | wrap (cls, exception, name=None) |
def | name (self) |
def | get_description (self, environ=None) |
def | get_body (self, environ=None) |
def | get_headers (self, environ=None) |
def | __call__ (self, environ, start_response) |
def | __str__ (self) |
def | __repr__ (self) |
Data Fields | |
new_url | |
![]() | |
response | |
Static Public Attributes | |
code | |
![]() | |
code | |
description | |
Raise if the map requests a redirect. This is for example the case if `strict_slashes` are activated and an url that requires a trailing slash. The attribute `new_url` contains the absolute destination url.
def __init__ | ( | self, | |
new_url | |||
) |
def get_response | ( | self, | |
environ = None |
|||
) |
Get a response object. If one was passed to the exception it's returned directly. :param environ: the optional environ for the request. This can be used to modify the response depending on how the request looked like. :return: a :class:`Response` object or a subclass thereof.
Reimplemented from HTTPException.
|
static |
new_url |