Home | Trees | Indices | Help |
|
---|
|
Classes | |
JsonResponse A class used to return a JSON response with a specific status code. |
|
ValidationError Exception used to indicate that parameters failed validation. |
|
Resource A resource, used to support a set of different methods at a given URI. |
|
MethodSwitch A resource, used to support a set of different methods at a given URI. |
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Function Details |
Apply all the checks and transforms listed in props to a request. This is typically called from a decorator, and the props are read from the decorated function. |
Apply all the checks and transforms listed in props to a response. This is typically called from a decorator, and the props are read from the decorated function. |
Default handler for validation errors. Returns a Response with status code 400. |
Make a web application for a given set of URLs.
FIXME - document the other parameters to this function. |
Make a server for an application. This uses CherryPy's standalone WSGI server. The first argument is the WSGI application to run; all subsequent arguments are passed directly to the server. The CherryPyWSGIServer is accessible as wsgiwapi.cpwsgiserver: see the documentation in that module for calling details. Note that you will always need to set the bind_addr parameter; this is a (host, port) tuple for TCP sockets, or a filename for UNIX sockets. The host part may be set to '0.0.0.0' to listen on all active IPv4 interfaces (or similarly, '::' to listen on all active IPv6 interfaces). |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jun 17 02:27:22 2013 | http://epydoc.sourceforge.net |