wotpy.protocols.http.handlers.utils
General utilities.
Functions
|
Utility function to retrieve an ExposedThing from the HTTPServer or raise an HTTPError. |
|
Parses the request body as JSON and returns the resulting object. |
|
If authentication fails request authentication from the client with the correct scheme. |
- wotpy.protocols.http.handlers.utils.get_exposed_thing(server, title)
Utility function to retrieve an ExposedThing from the HTTPServer or raise an HTTPError.
- wotpy.protocols.http.handlers.utils.parse_json_body(req_handler)
Parses the request body as JSON and returns the resulting object.
- wotpy.protocols.http.handlers.utils.request_auth(req_handler, scheme, thing_name)
If authentication fails request authentication from the client with the correct scheme.