|
.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
| __init__ (self, *args, **kwargs) | |
| handle_async_request (self, httpx.Request request) | |
| None | aclose (self) |
| __aenter__ (self) | |
| None | __aexit__ (self, type[BaseException]|None exc_type=None, BaseException|None exc_value=None, TracebackType|None traceback=None) |
Block HTTP request The constructor is blank because httpx.AsyncHTTPTransport.__init__ creates an SSLContext unconditionally: https://github.com/encode/httpx/blob/0f61aa58d66680c239ce43c8cdd453e7dc532bfc/httpx/_transports/default.py#L271 Each SSLContext consumes more than 500kb of memory, since there is about one network per engine. In consequence, this class overrides all public methods For reference: https://github.com/encode/httpx/issues/2298
| searx.network.client.AsyncHTTPTransportNoHttp.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
| searx.network.client.AsyncHTTPTransportNoHttp.__aenter__ | ( | self | ) |
| None searx.network.client.AsyncHTTPTransportNoHttp.__aexit__ | ( | self, | |
| type[BaseException] | None | exc_type = None, | ||
| BaseException | None | exc_value = None, | ||
| TracebackType | None | traceback = None ) |
| None searx.network.client.AsyncHTTPTransportNoHttp.aclose | ( | self | ) |
| searx.network.client.AsyncHTTPTransportNoHttp.handle_async_request | ( | self, | |
| httpx.Request | request ) |