* drop RedirectLoop exception * tests is package to allow run it easly * bring back test for redirect loop
87 lines
1.8 KiB
Python
87 lines
1.8 KiB
Python
from .__version__ import __description__, __title__, __version__
|
|
from ._api import delete, get, head, options, patch, post, put, request, stream
|
|
from ._auth import Auth, BasicAuth, DigestAuth
|
|
from ._client import AsyncClient, Client
|
|
from ._config import PoolLimits, Proxy, Timeout
|
|
from ._dispatch.asgi import ASGIDispatch
|
|
from ._dispatch.wsgi import WSGIDispatch
|
|
from ._exceptions import (
|
|
ConnectionClosed,
|
|
ConnectTimeout,
|
|
CookieConflict,
|
|
DecodingError,
|
|
HTTPError,
|
|
InvalidURL,
|
|
NetworkError,
|
|
NotRedirectResponse,
|
|
PoolTimeout,
|
|
ProtocolError,
|
|
ProxyError,
|
|
ReadTimeout,
|
|
RequestBodyUnavailable,
|
|
RequestNotRead,
|
|
ResponseClosed,
|
|
ResponseNotRead,
|
|
StreamConsumed,
|
|
TimeoutException,
|
|
TooManyRedirects,
|
|
WriteTimeout,
|
|
)
|
|
from ._models import URL, Cookies, Headers, QueryParams, Request, Response
|
|
from ._status_codes import StatusCode, codes
|
|
|
|
__all__ = [
|
|
"__description__",
|
|
"__title__",
|
|
"__version__",
|
|
"delete",
|
|
"get",
|
|
"head",
|
|
"options",
|
|
"patch",
|
|
"post",
|
|
"patch",
|
|
"put",
|
|
"request",
|
|
"stream",
|
|
"codes",
|
|
"ASGIDispatch",
|
|
"AsyncClient",
|
|
"Auth",
|
|
"BasicAuth",
|
|
"Client",
|
|
"DigestAuth",
|
|
"PoolLimits",
|
|
"Proxy",
|
|
"Timeout",
|
|
"ConnectTimeout",
|
|
"CookieConflict",
|
|
"ConnectionClosed",
|
|
"DecodingError",
|
|
"HTTPError",
|
|
"InvalidURL",
|
|
"NetworkError",
|
|
"NotRedirectResponse",
|
|
"PoolTimeout",
|
|
"ProtocolError",
|
|
"ReadTimeout",
|
|
"RequestBodyUnavailable",
|
|
"ResponseClosed",
|
|
"ResponseNotRead",
|
|
"RequestNotRead",
|
|
"StreamConsumed",
|
|
"ProxyError",
|
|
"TooManyRedirects",
|
|
"WriteTimeout",
|
|
"URL",
|
|
"StatusCode",
|
|
"Cookies",
|
|
"Headers",
|
|
"QueryParams",
|
|
"Request",
|
|
"TimeoutException",
|
|
"Response",
|
|
"DigestAuth",
|
|
"WSGIDispatch",
|
|
]
|