Links
Request Object
class werkzeug.wrappers.Request(environ, populate_request=True, shallow=False)
Full featured request object implementing the following mixins:
- AcceptMixin for accept header parsing
- ETagRequestMixin for etag and cache control handling
- UserAgentMixin for user agent introspection
- AuthorizationMixin for http auth handling
- CommonRequestDescriptorsMixin for common headers
See werkzeug.wrappers.BaseRequest
Response Object
- werkzeug.Response
- You can just set the
expires
andlast_modified
fields on the response object to set theExpires
andLast-Modified
headers without having to bother formatting it. - To format manually, ref:
- The Response object includes CommonResponseDescriptorsMixin
that defines
expires = header_property('Expires', None, parse_date, http_date, ...
- werkzeug/http.py: http_date(timestamp=None)
- werkzeug.Request