OpenQuizz
Une application de gestion des contenus pédagogiques
Response Class Reference
Inheritance diagram for Response:
Collaboration diagram for Response:

Additional Inherited Members

- Public Member Functions inherited from BaseResponse
def __init__ (self, response=None, status=None, headers=None, mimetype=None, content_type=None, direct_passthrough=False)
 
def call_on_close (self, func)
 
def __repr__ (self)
 
def force_type (cls, response, environ=None)
 
def from_app (cls, app, environ, buffered=False)
 
def status_code (self)
 
def status_code (self, code)
 
def status (self)
 
def status (self, value)
 
def get_data (self, as_text=False)
 
def set_data (self, value)
 
def calculate_content_length (self)
 
def make_sequence (self)
 
def iter_encoded (self)
 
def set_cookie (self, key, value="", max_age=None, expires=None, path="/", domain=None, secure=False, httponly=False, samesite=None)
 
def delete_cookie (self, key, path="/", domain=None)
 
def is_streamed (self)
 
def is_sequence (self)
 
def close (self)
 
def __enter__ (self)
 
def __exit__ (self, exc_type, exc_value, tb)
 
def freeze (self)
 
def get_wsgi_headers (self, environ)
 
def get_app_iter (self, environ)
 
def get_wsgi_response (self, environ)
 
def __call__ (self, environ, start_response)
 
- Public Member Functions inherited from ETagResponseMixin
def cache_control (self)
 
def make_conditional (self, request_or_environ, accept_ranges=False, complete_length=None)
 
def add_etag (self, overwrite=False, weak=False)
 
def set_etag (self, etag, weak=False)
 
def get_etag (self)
 
def freeze (self, no_etag=False)
 
def content_range (self)
 
def content_range (self, value)
 
- Public Member Functions inherited from WWWAuthenticateMixin
def www_authenticate (self)
 
- Public Member Functions inherited from CORSResponseMixin
def access_control_allow_credentials (self)
 
def access_control_allow_credentials (self, value)
 
- Public Member Functions inherited from ResponseStreamMixin
def stream (self)
 
- Public Member Functions inherited from CommonResponseDescriptorsMixin
def mimetype (self)
 
def mimetype (self, value)
 
def mimetype_params (self)
 
def retry_after (self)
 
def retry_after (self, value)
 
- Data Fields inherited from BaseResponse
 headers
 
 status_code
 
 status
 
 direct_passthrough
 
 response
 
- Data Fields inherited from ETagResponseMixin
 status_code
 
 response
 
 content_range
 
- Static Public Attributes inherited from BaseResponse
 charset
 
 default_status
 
 default_mimetype
 
 implicit_sequence_conversion
 
 autocorrect_location_header
 
 automatically_set_content_length
 
 max_cookie_size
 
- Static Public Attributes inherited from ETagResponseMixin
 accept_ranges
 
 doc
 
- Static Public Attributes inherited from CORSResponseMixin
 access_control_allow_headers
 
 load_func
 
 dump_func
 
 doc
 
 access_control_allow_methods
 
 access_control_allow_origin
 
 access_control_expose_headers
 
 access_control_max_age
 
- Static Public Attributes inherited from CommonResponseDescriptorsMixin
 location
 
 doc
 
 age
 
 content_type
 
 content_length
 
 content_location
 
 content_encoding
 
 content_md5
 
 content_security_policy
 
 content_security_policy_report_only
 
 date
 
 expires
 
 last_modified
 
 vary
 
 content_language
 
 allow
 
- Properties inherited from BaseResponse
 data
 

Detailed Description

Full featured response object implementing the following mixins:

-   :class:`ETagResponseMixin` for etag and cache control handling
-   :class:`WWWAuthenticateMixin` for HTTP authentication support
-   :class:`~werkzeug.wrappers.cors.CORSResponseMixin` for Cross
    Origin Resource Sharing headers
-   :class:`ResponseStreamMixin` to add support for the ``stream``
    property
-   :class:`CommonResponseDescriptorsMixin` for various HTTP
    descriptors

The documentation for this class was generated from the following file: