http_urllib_client: include exceptions

This commit is contained in:
Izalia Mae 2021-09-17 13:41:49 -04:00
parent e36fcef790
commit a8f1b83256
2 changed files with 37 additions and 0 deletions

View file

@ -10,6 +10,7 @@ from .signatures import (
)
from . import error
from .client import HttpUrllibClient, set_default_client
from .request import HttpUrllibRequest
from .response import HttpUrllibResponse

View file

@ -0,0 +1,36 @@
from urllib3.exceptions import (
HTTPError,
PoolError,
RequestError,
SSLError,
ProxyError,
DecodeError,
ProtocolError,
MaxRetryError,
HostChangedError,
TimeoutStateError,
TimeoutError,
ReadTimeoutError,
NewConnectionError,
EmptyPoolError,
ClosedPoolError,
LocationValueError,
LocationParseError,
URLSchemeUnknown,
ResponseError,
SecurityWarning,
InsecureRequestWarning,
SystemTimeWarning,
InsecurePlatformWarning,
SNIMissingWarning,
DependencyWarning,
ResponseNotChunked,
BodyNotHttplibCompatible,
IncompleteRead,
InvalidChunkLength,
InvalidHeader,
ProxySchemeUnknown,
ProxySchemeUnsupported,
HeaderParsingError,
UnrewindableBodyError
)