From a38d19576c387e505cc468b20ca5b8bcf2fa4759 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Thu, 11 Aug 2022 15:47:13 +0200 Subject: move classes/protocols for representing HTTP requests and responses data into a separate file --- src/hydrilla/proxy/csp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/hydrilla/proxy/csp.py') 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 = [] -- cgit v1.2.3