The monasca_events_api.app.core.request Module

class monasca_events_api.app.core.request.Request(env, options=None)[source]

Bases: falcon.request.Request

Variation of falcon. Request with context.

Following class enhances falcon.Request with context.CustomRequestContext

can(action, target=None)[source]
content_type
context
env
method
options
path
query_string
stream
uri_template
validate(content_types)[source]

Performs common request validation

Validation checklist (in that order):

  • validation.validate_content_type()

Parameters

content_types (list) – allowed content-types handler supports

Raises

Exception – if any of the validation fails