.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.network.client.AsyncProxyTransportFixed Class Reference
+ Inheritance diagram for searx.network.client.AsyncProxyTransportFixed:
+ Collaboration diagram for searx.network.client.AsyncProxyTransportFixed:

Public Member Functions

 handle_async_request (self, request)
 

Detailed Description

Fix httpx_socks.AsyncProxyTransport

Map python_socks exceptions to httpx.ProxyError exceptions

Definition at line 98 of file client.py.

Member Function Documentation

◆ handle_async_request()

searx.network.client.AsyncProxyTransportFixed.handle_async_request ( self,
request )

Definition at line 104 of file client.py.

104 async def handle_async_request(self, request):
105 try:
106 return await super().handle_async_request(request)
107 except ProxyConnectionError as e:
108 raise httpx.ProxyError("ProxyConnectionError: " + e.strerror, request=request) from e
109 except ProxyTimeoutError as e:
110 raise httpx.ProxyError("ProxyTimeoutError: " + e.args[0], request=request) from e
111 except ProxyError as e:
112 raise httpx.ProxyError("ProxyError: " + e.args[0], request=request) from e
113
114

References searx.network.client.AsyncProxyTransportFixed.handle_async_request().

Referenced by searx.network.client.AsyncProxyTransportFixed.handle_async_request().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: