feat: replace raw_response property with smart content detection

This commit is contained in:
Karim shoair
2025-11-10 02:39:45 +02:00
parent 372fc1e051
commit ff19dd5bf5
2 changed files with 8 additions and 6 deletions
-2
View File
@@ -31,7 +31,6 @@ class Response(Selector):
request_headers: Dict,
encoding: str = "utf-8",
method: str = "GET",
raw_response: str | bytes = "",
history: List | None = None,
**selector_config: Any,
):
@@ -40,7 +39,6 @@ class Response(Selector):
self.reason = reason
self.cookies = cookies
self.headers = headers
self.raw_response = raw_response or content
self.request_headers = request_headers
self.history = history or []
super().__init__(