The zaqar.api.handler module

class Handler(storage, control, validate, defaults)

Bases: object

Defines API handler

The handler validates and process the requests

static create_request(payload=None)
create_response(code, body, req=None)
get_defaults()
process_request(req)
static validate_request(payload, req)

Validate a request and its payload against a schema.

Returns:a Response object if validation failed, None otherwise.
verify_signature(key, payload)

Previous topic

<no title>

Next topic

The zaqar.api.v1.request module

Project Source

This Page