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

Public Member Functions

def __init__ (self, app, mounts=None)
 
def __call__ (self, environ, start_response)
 

Data Fields

 app
 
 mounts
 

Detailed Description

Combine multiple applications as a single WSGI application.
Requests are dispatched to an application based on the path it is
mounted under.

:param app: The WSGI application to dispatch to if the request
    doesn't match a mounted path.
:param mounts: Maps path prefixes to applications for dispatching.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  app,
  mounts = None 
)

Member Function Documentation

◆ __call__()

def __call__ (   self,
  environ,
  start_response 
)

Field Documentation

◆ app

app

◆ mounts

mounts

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