Fix httpx_socks.AsyncProxyTransport
Map python_socks exceptions to httpx.ProxyError exceptions
Definition at line 101 of file client.py.
◆ handle_async_request()
searx.network.client.AsyncProxyTransportFixed.handle_async_request |
( |
| self, |
|
|
httpx.Request | request ) |
Definition at line 107 of file client.py.
107 async def handle_async_request(self, request: httpx.Request):
108 try:
109 return await super().handle_async_request(request)
110 except ProxyConnectionError as e:
111 raise httpx.ProxyError("ProxyConnectionError: " + str(e.strerror), request=request) from e
112 except ProxyTimeoutError as e:
113 raise httpx.ProxyError("ProxyTimeoutError: " + e.args[0], request=request) from e
114 except ProxyError as e:
115 raise httpx.ProxyError("ProxyError: " + e.args[0], request=request) from e
116
117
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