Module wsgi
source code
Module which incorporates the WSGI integration.
Created on 22.11.2011
|
RETURN_CODES = { 200: ' 200 OK ' , 201: ' 201 Created ' , 400: ' 400 B ...
|
|
__package__ = ' occi '
|
Imports:
VERSION,
KindBackend,
MixinBackend,
ActionBackend,
HTTPError,
QUERY_STRING,
QueryHandler,
CollectionHandler,
ResourceHandler,
CATEGORY,
LINK,
ATTRIBUTE,
LOCATION,
ACCEPT,
CONTENT_TYPE,
HTMLRendering,
JsonRendering,
TextOcciRendering,
TextPlainRendering,
TextUriListRendering,
NonePersistentRegistry,
StringIO,
logging
Will parse the HTTP Headers and only return those who are needed for
the OCCI service.
Also translates the WSGI notion of the Header field names to those
used by OCCI.
environ -- The WSGI environ
|
Parse the body from the WSGI environ.
environ -- The WSGI environ.
|
Parse the query from the WSGI environ.
environ -- The WSGI environ.
|
Set the hostname of the service.
environ -- The WSGI environ. registry -- The OCCI registry.
|
RETURN_CODES
- Value:
{ 200: ' 200 OK ' ,
201: ' 201 Created ' ,
400: ' 400 Bad Request ' ,
403: ' 403 Forbidden ' ,
404: ' 404 Not Found ' ,
405: ' 405 Method Not Allowed ' ,
406: ' 406 Not Acceptable ' ,
500: ' 500 Internal Server Error ' ,
...
|
|