.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 94 of file client.py.

Member Function Documentation

◆ handle_async_request()

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

Definition at line 100 of file client.py.

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

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: