WSGI middleware for URL paths and HTTP method based delegation.
|
|
__init__(self,
mappings=None,
prefix='',
parser=None,
wrap=None,
mapfile=None,
consume_path=True)
Initialize selector. |
source code
|
|
|
|
slurp(self,
mappings,
prefix=None,
parser=None,
wrap=None)
Slurp in a whole list (or iterable) of mappings. |
source code
|
|
|
|
add(self,
path,
method_dict=None,
prefix=None,
**http_methods)
Add a mapping. |
source code
|
|
|
|
__call__(self,
environ,
start_response)
Delegate request to the appropriate WSGI app. |
source code
|
|
|
|
select(self,
path,
method)
Figure out which app to delegate to or send 404 or 405. |
source code
|
|
|
|
slurp_file(self,
the_file,
prefix=None,
parser=None,
wrap=None)
Read mappings from a simple text file. |
source code
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|