Fix httpx_socks.AsyncProxyTransport
Map python_socks exceptions to httpx.ProxyError exceptions
Definition at line 97 of file client.py.
◆ handle_async_request()
searx.network.client.AsyncProxyTransportFixed.handle_async_request |
( |
| self, |
|
|
httpx.Request | request ) |
Definition at line 103 of file client.py.
103 async def handle_async_request(self, request: httpx.Request):
104 try:
105 return await super().handle_async_request(request)
106 except ProxyConnectionError as e:
107 raise httpx.ProxyError("ProxyConnectionError: " + str(e.strerror), request=request) from e
108 except ProxyTimeoutError as e:
109 raise httpx.ProxyError("ProxyTimeoutError: " + e.args[0], request=request) from e
110 except ProxyError as e:
111 raise httpx.ProxyError("ProxyError: " + e.args[0], request=request) from e
112
113
References handle_async_request().
Referenced by handle_async_request().
The documentation for this class was generated from the following file:
- /home/andrew/Documents/code/public/searxng/searx/network/client.py