Attribute handler¶
Module realized a handler for requests related to a single temporary attributes.
- class luna_faces.app.handlers.attribute_handler.AttributeHandler(request)[source]¶
Handler for work with a single attributes.
- async delete(attributeId)[source]¶
Delete temporary attribute. See spec_delete_attribute.
- Return type:
HTTPResponse
- Returns:
response with status code 204
- async get(attributeId)[source]¶
Get temporary attribute. See spec_get_attribute.
- Return type:
HTTPResponse
- Returns:
response json with attribute
- async head(attributeId)[source]¶
Check temporary attribute. See spec_check_attribute.
- Return type:
HTTPResponse
- Returns:
response with status code 200 if attribute is exists otherwise status code 404
- async put(attributeId)[source]¶
Put temporary attribute. See spec_put_attribute.
- Return type:
HTTPResponse
- Returns:
response with status code 204