Skip to content

Commit 357041f

Browse files
committed
feat(proxy-checker): add response field to ProxyChekerResult and update ProxyChecker initialization
1 parent 99593c9 commit 357041f

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎proxy_checker/ProxyChecker.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ def check_proxy(
143143
protocols=[],
144144
anonymity="",
145145
latency=0,
146+
response="",
146147
country=None,
147148
country_code=None,
148149
proxy=None,
@@ -180,6 +181,7 @@ def check_proxy(
180181
protocols=list(protocols.keys()),
181182
anonymity=anonymity,
182183
latency=latency,
184+
response=sample_response,
183185
country=country[0],
184186
country_code=country[1],
185187
proxy=remote_addr,

‎proxy_checker/ProxyChekerResult.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class ProxyChekerResult:
99
protocols: List[str]
1010
anonymity: Union[Literal["Transparent", "Anonymous", "Elite"], str]
1111
latency: int
12+
response: Optional[str] = None
1213
country: Optional[str] = None
1314
country_code: Optional[str] = None
1415
proxy: Optional[str] = None

0 commit comments

Comments
 (0)