__init__.py
This file
Path
httpx/__init__.py
109 lines · 2.3 KiB · Python
Last changed by
Version 0.15.0 (#1301)Tom Christiebefore adoptionf932af9
History of this fileTake it
1from .__version__ import __description__, __title__, __version__2from ._api import delete, get, head, options, patch, post, put, request, stream3from ._auth import Auth, BasicAuth, DigestAuth4from ._client import AsyncClient, Client5from ._config import Limits, Proxy, Timeout, create_ssl_context6from ._exceptions import (7 CloseError,8 ConnectError,9 ConnectTimeout,10 CookieConflict,11 DecodingError,12 HTTPError,13 HTTPStatusError,14 InvalidURL,15 LocalProtocolError,16 NetworkError,17 NotRedirectResponse,18 PoolTimeout,19 ProtocolError,20 ProxyError,21 ReadError,22 ReadTimeout,23 RemoteProtocolError,24 RequestError,25 RequestNotRead,26 ResponseClosed,27 ResponseNotRead,28 StreamConsumed,29 StreamError,30 TimeoutException,31 TooManyRedirects,32 TransportError,33 UnsupportedProtocol,34 WriteError,35 WriteTimeout,36)37from ._models import URL, Cookies, Headers, QueryParams, Request, Response38from ._status_codes import StatusCode, codes39from ._transports.asgi import ASGITransport40from ._transports.wsgi import WSGITransport4142__all__ = [43 "__description__",44 "__title__",45 "__version__",46 "ASGITransport",47 "AsyncClient",48 "Auth",49 "BasicAuth",50 "Client",51 "CloseError",52 "codes",53 "ConnectError",54 "ConnectTimeout",55 "CookieConflict",56 "Cookies",57 "create_ssl_context",58 "DecodingError",59 "delete",60 "DigestAuth",61 "get",62 "head",63 "Headers",64 "HTTPError",65 "HTTPStatusError",66 "InvalidURL",67 "Limits",68 "LocalProtocolError",69 "NetworkError",70 "NotRedirectResponse",71 "options",72 "patch",73 "PoolTimeout",74 "post",75 "ProtocolError",76 "Proxy",77 "ProxyError",78 "put",79 "QueryParams",80 "ReadError",81 "ReadTimeout",82 "RemoteProtocolError",83 "request",84 "Request",85 "RequestError",86 "RequestNotRead",87 "Response",88 "ResponseClosed",89 "ResponseNotRead",90 "StatusCode",91 "stream",92 "StreamConsumed",93 "StreamError",94 "Timeout",95 "TimeoutException",96 "TooManyRedirects",97 "TransportError",98 "UnsupportedProtocol",99 "URL",100 "WriteError",101 "WriteTimeout",102 "WSGITransport",103]104105106__locals = locals()107for __name in __all__:108 if not __name.startswith("__"):109 setattr(__locals[__name], "__module__", "httpx") # noqa