JSON Validating Request Handler (fixie.request_handler)

A request handler for fixie that expects JSON data and validates it.

class fixie.request_handler.RequestHandler(application, request, **kwargs)[source]

A Tornado request handler that prepare the data by loading a JSON request and then validating the resultant object against the cerberus schema defined on the class as the ‘schema’ attribute. This class is meant to be subclassed.

prepare()[source]
set_default_headers()[source]
write(chunk)[source]

Writes the given chunk to the output buffer. This overrides (and almost completely reimplements) ``tornado.web.RequestHandler.write() so that we can use the default fixie JSON tools.

write_error(status_code, **kwargs)[source]
validator