mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
commit
4f82ab36a9
9 changed files with 102 additions and 36 deletions
|
|
@ -7,6 +7,7 @@ import threading
|
|||
import concurrent.futures
|
||||
from types import MethodType
|
||||
from timeit import default_timer
|
||||
from typing import Iterable, Tuple
|
||||
|
||||
import httpx
|
||||
import anyio
|
||||
|
|
@ -210,7 +211,7 @@ def _close_response_method(self):
|
|||
continue
|
||||
|
||||
|
||||
def stream(method, url, **kwargs):
|
||||
def stream(method, url, **kwargs) -> Tuple[httpx.Response, Iterable[bytes]]:
|
||||
"""Replace httpx.stream.
|
||||
|
||||
Usage:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue