werkzeug.CommonResponseDescriptorsMixin
¶
-
class
werkzeug.
CommonResponseDescriptorsMixin
[source]¶ A mixin for
BaseResponse
subclasses. Response objects that mix this class in will automatically get descriptors for a couple of HTTP headers with automatic type conversion.
Attributes¶
age |
The Age response-header field conveys the sender’s estimate of the amount of time since the response (or its revalidation) was generated at the origin server. |
allow |
The Allow entity-header field lists the set of methods supported by the resource identified by the Request-URI. |
content_encoding |
The Content-Encoding entity-header field is used as a modifier to the media-type. |
content_language |
The Content-Language entity-header field describes the natural language(s) of the intended audience for the enclosed entity. |
content_length |
The Content-Length entity-header field indicates the size of the entity-body, in decimal number of OCTETs, sent to the recipient or, in the case of the HEAD method, the size of the entity-body that would have been sent had the request been a GET. |
content_location |
The Content-Location entity-header field MAY be used to supply the resource location for the entity enclosed in the message when that entity is accessible from a location separate from the requested resource’s URI. |
content_md5 |
The Content-MD5 entity-header field, as defined in RFC 1864, is an MD5 digest of the entity-body for the purpose of providing an end-to-end message integrity check (MIC) of the entity-body. |
content_type |
The Content-Type entity-header field indicates the media type of the entity-body sent to the recipient or, in the case of the HEAD method, the media type that would have been sent had the request been a GET. |
date |
The Date general-header field represents the date and time at which the message was originated, having the same semantics as orig-date in RFC 822. |
expires |
The Expires entity-header field gives the date/time after which the response is considered stale. |
last_modified |
The Last-Modified entity-header field indicates the date and time at which the origin server believes the variant was last modified. |
location |
The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of the request or identification of a new resource. |
mimetype |
The mimetype (content type without charset etc.) |
mimetype_params |
The mimetype parameters as dict. |
retry_after |
The Retry-After response-header field can be used with a 503 (Service Unavailable) response to indicate how long the service is expected to be unavailable to the requesting client. |
vary |
The Vary field value indicates the set of request-header fields that fully determines, while the response is fresh, whether a cache is permitted to use the response to reply to a subsequent request without revalidation. |