34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
from collections.abc import Callable, Mapping
|
|
from ssl import SSLContext
|
|
from typing import Any
|
|
|
|
from httpx import URL, Limits
|
|
from httpx import AsyncClient as AsyncHTTPXClient
|
|
from httpx import _types as t # type: ignore
|
|
|
|
class AioHTTPXClient(AsyncHTTPXClient):
|
|
def __init__(
|
|
self,
|
|
*,
|
|
auth: t.AuthTypes | None = ...,
|
|
params: t.QueryParamTypes | None = ...,
|
|
headers: t.HeaderTypes | None = ...,
|
|
cookies: t.CookieTypes | None = ...,
|
|
verify: SSLContext | str | bool = ...,
|
|
cert: t.CertTypes | None = ...,
|
|
proxy: t.ProxyTypes | None = ...,
|
|
timeout: t.TimeoutTypes = ...,
|
|
follow_redirects: bool = ...,
|
|
limits: Limits = ...,
|
|
max_redirects: int = ...,
|
|
event_hooks: Mapping[str, list[Callable[..., Any]]] | None = ...,
|
|
base_url: URL | str = ...,
|
|
trust_env: bool = ...,
|
|
default_encoding: str | Callable[[bytes], str] = ...,
|
|
redis_url: str | None = ...,
|
|
key: str | None = ...,
|
|
limit: int | None = ...,
|
|
) -> None: ...
|
|
|
|
__all__ = ['AioHTTPXClient']
|