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

Public Member Functions

def max_cookie_size (self)
 
- Public Member Functions inherited from JSONMixin
def on_json_loading_failed (self, e)
 

Static Public Attributes

 default_mimetype
 
- Static Public Attributes inherited from JSONMixin
 json_module
 

Detailed Description

The response object that is used by default in Flask.  Works like the
response object from Werkzeug but is set to have an HTML mimetype by
default.  Quite often you don't have to create this object yourself because
:meth:`~flask.Flask.make_response` will take care of that for you.

If you want to replace the response object used you can subclass this and
set :attr:`~flask.Flask.response_class` to your subclass.

.. versionchanged:: 1.0
    JSON support is added to the response, like the request. This is useful
    when testing to get the test client response data as JSON.

.. versionchanged:: 1.0

    Added :attr:`max_cookie_size`.

Member Function Documentation

◆ max_cookie_size()

def max_cookie_size (   self)
Read-only view of the :data:`MAX_COOKIE_SIZE` config key.

See :attr:`~werkzeug.wrappers.BaseResponse.max_cookie_size` in
Werkzeug's docs.

Field Documentation

◆ default_mimetype

default_mimetype
static

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