The ResponseMixin class provides functionality to manage the delivery of the application response to the browser. The class maintains headers in a case insensitive ordered dictionary that ensures the headers are sent to the browser in the same sequence as they are set (via set_header() or add_header).
The class automatically sends the headers to the browser when the first content is sent. Any attempt to modify or send headers after they have been sent will raise an ApplicationError exception.
All Albatross execution context classes except for SimpleContext inherit from this class.
) |
name) |
None
is returned.
name, value) |
If headers have already been sent to the browser then an ApplicationError exception will be raised.
name, value) |
If headers have already been sent to the browser then an ApplicationError exception will be raised.
name) |
If headers have already been sent to the browser then an ApplicationError exception will be raised.
) |
If headers have already been sent to the browser then an ApplicationError exception will be raised.
data) |
If headers have not already been delivered to the browser then the write_headers() method is called before the data is written.
loc) |