class ContentSecurityPolicy(UpdateDictMixin, dict):
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 ContentSecuirtyPolicy
object again
you can convert the object into a string or call the
to_header
method. If you plan to subclass it and add your
own items have a look at the sourcecode for that class.
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | to_header |
Convert the stored values into a cache control header. |
Class Variable | base_uri |
Undocumented |
Class Variable | child_src |
Undocumented |
Class Variable | connect_src |
Undocumented |
Class Variable | default_src |
Undocumented |
Class Variable | font_src |
Undocumented |
Class Variable | form_action |
Undocumented |
Class Variable | frame_ancestors |
Undocumented |
Class Variable | frame_src |
Undocumented |
Class Variable | img_src |
Undocumented |
Class Variable | manifest_src |
Undocumented |
Class Variable | media_src |
Undocumented |
Class Variable | navigate_to |
Undocumented |
Class Variable | object_src |
Undocumented |
Class Variable | plugin_types |
Undocumented |
Class Variable | prefetch_src |
Undocumented |
Class Variable | report_to |
Undocumented |
Class Variable | report_uri |
Undocumented |
Class Variable | sandbox |
Undocumented |
Class Variable | script_src |
Undocumented |
Class Variable | script_src_attr |
Undocumented |
Class Variable | script_src_elem |
Undocumented |
Class Variable | style_src |
Undocumented |
Class Variable | style_src_attr |
Undocumented |
Class Variable | style_src_elem |
Undocumented |
Class Variable | worker_src |
Undocumented |
Instance Variable | on_update |
Undocumented |
Instance Variable | provided |
Undocumented |
Method | _del_value |
Used internally by the accessor properties. |
Method | _get_value |
Used internally by the accessor properties. |
Method | _set_value |
Used internally by the accessor properties. |
Inherited from UpdateDictMixin
:
Method | pop |
Undocumented |
Method | setdefault |
Undocumented |
Class Variable | __delitem__ |
Undocumented |
Class Variable | __setitem__ |
Undocumented |
Class Variable | clear |
Undocumented |
Class Variable | popitem |
Undocumented |
Class Variable | update |
Undocumented |