OpenQuizz
Une application de gestion des contenus pédagogiques
RequestRedirect Class Reference
Inheritance diagram for RequestRedirect:
Collaboration diagram for RequestRedirect:

Public Member Functions

def __init__ (self, new_url)
 
def get_response (self, environ=None)
 
- Public Member Functions inherited from HTTPException
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
 
- Data Fields inherited from HTTPException
 response
 

Static Public Attributes

 code
 
- Static Public Attributes inherited from HTTPException
 code
 
 description
 

Detailed 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.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  new_url 
)

Member Function Documentation

◆ get_response()

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.

Field Documentation

◆ code

code
static

◆ new_url

new_url

The documentation for this class was generated from the following file: