diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-08-11 15:47:13 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-08-11 15:47:13 +0200 |
commit | a38d19576c387e505cc468b20ca5b8bcf2fa4759 (patch) | |
tree | a578f4056dfea683d3bb2714ae1620eac576da0e /src/hydrilla/proxy/csp.py | |
parent | ad97639bbf982b5b3b2757e75c3f91556e3a8eac (diff) | |
download | haketilo-hydrilla-a38d19576c387e505cc468b20ca5b8bcf2fa4759.tar.gz haketilo-hydrilla-a38d19576c387e505cc468b20ca5b8bcf2fa4759.zip |
move classes/protocols for representing HTTP requests and responses data into a separate file
Diffstat (limited to 'src/hydrilla/proxy/csp.py')
-rw-r--r-- | src/hydrilla/proxy/csp.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hydrilla/proxy/csp.py b/src/hydrilla/proxy/csp.py index 59d93f2..52047da 100644 --- a/src/hydrilla/proxy/csp.py +++ b/src/hydrilla/proxy/csp.py @@ -37,7 +37,7 @@ import dataclasses as dc from immutables import Map, MapMutation -from .policies.base import IHeaders +from . import http_messages header_names_and_dispositions = ( @@ -106,7 +106,8 @@ class ContentSecurityPolicy: disposition = disposition ) -def extract(headers: IHeaders) -> tuple[ContentSecurityPolicy, ...]: +def extract(headers: http_messages.IHeaders) \ + -> tuple[ContentSecurityPolicy, ...]: """....""" csp_policies = [] |