|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, values=(), on_update=None) |
| def | to_header (self) |
| def | __str__ (self) |
| def | __repr__ (self) |
Public Member Functions inherited from UpdateDictMixin | |
| def | calls_update (name) |
| def | setdefault (self, key, default=None) |
| def | pop (self, key, default=_missing) |
Data Fields | |
| on_update | |
| provided | |
Static Public Attributes | |
| base_uri | |
| child_src | |
| connect_src | |
| default_src | |
| font_src | |
| form_action | |
| frame_ancestors | |
| frame_src | |
| img_src | |
| manifest_src | |
| media_src | |
| navigate_to | |
| object_src | |
| prefetch_src | |
| plugin_types | |
| report_to | |
| report_uri | |
| sandbox | |
| script_src | |
| script_src_attr | |
| script_src_elem | |
| style_src | |
| style_src_attr | |
| style_src_elem | |
| worker_src | |
Static Public Attributes inherited from UpdateDictMixin | |
| on_update | |
| clear | |
| popitem | |
| update | |
Subclass of a dict that stores values for a Content Security Policy header. It has accessors for all the level 3 policies. Because the csp directives in the HTTP header use dashes the python descriptors use underscores for that. To get a header of the :class:`ContentSecuirtyPolicy` object again you can convert the object into a string or call the :meth:`to_header` method. If you plan to subclass it and add your own items have a look at the sourcecode for that class. .. versionadded:: 1.0.0 Support for Content Security Policy headers was added.
| def __init__ | ( | self, | |
values = (), |
|||
on_update = None |
|||
| ) |
| def __repr__ | ( | self | ) |
| def __str__ | ( | self | ) |
| def to_header | ( | self | ) |
Convert the stored values into a cache control header.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| on_update |
|
static |
|
static |
| provided |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |