wsgi transport helpers.
Adds project_id to the list of params for all responders
Meant to be used as a before hook.
Parameters: |
|
---|---|
Return type: | None |
Read a required Client-ID from a request.
Parameters: | req – A falcon.Request object |
---|---|
Raises: | HTTPBadRequest if the Client-ID header is missing or does not represent a valid UUID |
Returns: | A UUID object |
Inject context value into request environment.
Parameters: |
|
---|---|
Return type: | None |
Raises an exception if the request does not accept JSON
Meant to be used as a before hook.
Parameters: |
|
---|---|
Return type: | None |
Raises: | falcon.HTTPNotAcceptable |
Makes sure the header Client-ID is present in the request
Use as a before hook. :param req: request sent :type req: falcon.request.Request :param resp: response object to return :type resp: falcon.response.Response :param params: additional parameters passed to responders :type params: dict :rtype: None
Raises an exception on “x-www-form-urlencoded” content type of request.
If request has body and “Content-Type” header has “application/x-www-form-urlencoded” value (case-insensitive), this function raises falcon.HTTPBadRequest exception.
This strange function exists only to prevent bug/1547100 in a backward compatible way.
Meant to be used as a before hook.
Parameters: |
|
---|---|
Return type: | None |
Raises: | falcon.HTTPBadRequest |
Hook for validating the queue name and project id in requests.
The queue name validation is short-circuited if ‘queue_name’ does not exist in params.
This hook depends on the get_project hook, which must be installed upstream.
Parameters: |
|
---|