Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/urllib3/urllib3
/ types & classes
Types & classes
218 in github.com/urllib3/urllib3
⨍
Functions
1,476
◇
Types & classes
218
↳
Endpoints
57
↓ 150 callers
Class
HTTPConnectionPool
Thread-safe connection pool for one host. :param host: Host used for this HTTP Connection (e.g. "localhost"), passed into :c
src/urllib3/connectionpool.py:120
↓ 100 callers
Class
HTTPResponse
HTTP Response container. Backwards-compatible with :class:`http.client.HTTPResponse` but the response ``body`` is loaded and decoded on-
src/urllib3/response.py:540
↓ 70 callers
Class
HTTPSConnectionPool
Same as :class:`.HTTPConnectionPool`, but HTTPS. :class:`.HTTPSConnection` uses one of ``assert_fingerprint``, ``assert_hostname`` and `
src/urllib3/connectionpool.py:965
↓ 57 callers
Class
PoolManager
Allows for arbitrary requests while transparently keeping track of necessary connection pools for you. :param num_pools: Number
src/urllib3/poolmanager.py:162
↓ 56 callers
Class
Retry
Retry configuration. Each retry attempt will create a new Retry object with updated values, so they can be safely reused. Retries can be
src/urllib3/util/retry.py:41
↓ 37 callers
Class
HTTPHeaderDict
:param headers: An iterable of field-value pairs. Must not contain multiple field names when compared case-insensitively. :p
src/urllib3/_collections.py:206
↓ 25 callers
Class
Timeout
Timeout configuration. Timeouts can be defined as a default for a pool: .. code-block:: python import urllib3 timeout = ur
src/urllib3/util/timeout.py:25
↓ 17 callers
Class
SSLTransport
The SSLTransport wraps an existing socket and establishes an SSL connection. Contrary to Python's implementation of SSLSocket, it allows you
src/urllib3/util/ssltransport.py:22
↓ 9 callers
Class
BytesQueueBuffer
Memory-efficient bytes buffer To return decoded data in read() and still follow the BufferedIOBase API, we need a buffer to always return the
src/urllib3/response.py:227
↓ 9 callers
Class
ProxyManager
Behaves just like :class:`PoolManager`, but sends all requests through the defined proxy, using the CONNECT method for HTTPS URLs. :para
src/urllib3/poolmanager.py:492
↓ 9 callers
Class
ReadTimeoutError
Raised when a socket timeout occurs while receiving data from a server
src/urllib3/exceptions.py:129
↓ 8 callers
Class
ConnectTimeoutError
Raised when a socket timeout occurs while connecting to a server
src/urllib3/exceptions.py:135
↓ 7 callers
Class
Url
Data structure for representing an HTTP URL. Used as a return value for :func:`parse_url`. Both the scheme and host are normalized as they ar
src/urllib3/util/url.py:80
↓ 6 callers
Class
MockChunkedEncodingResponse
test/test_response.py:1560
↓ 6 callers
Class
SSLError
Raised when SSL certificate fails in an HTTPS connection.
src/urllib3/exceptions.py:55
↓ 5 callers
Class
HTTPConnection
Based on :class:`http.client.HTTPConnection` but provides an extra constructor backwards-compatibility layer between older and newer Pythons.
src/urllib3/connection.py:81
↓ 5 callers
Class
HTTPSConnection
Many of the parameters to this constructor are passed to the underlying SSL socket by means of :py:func:`urllib3.util.ssl_wrap_socket`.
src/urllib3/connection.py:495
↓ 5 callers
Class
RequestField
A data container for request body parameters. :param name: The name of this request field. Must be unicode. :param data:
src/urllib3/fields.py:153
↓ 5 callers
Class
RequestHistory
src/urllib3/util/retry.py:33
↓ 4 callers
Class
LocationParseError
Raised when get_host or similar fails to parse the URL input.
src/urllib3/exceptions.py:182
↓ 3 callers
Class
EmptyPoolError
Raised when a pool runs out of connections and no more are allowed.
src/urllib3/exceptions.py:166
↓ 3 callers
Class
InvalidHeader
The header provided was somehow invalid.
src/urllib3/exceptions.py:285
↓ 3 callers
Class
NewConnectionError
Raised when we fail to establish a new connection. Usually ECONNREFUSED.
src/urllib3/exceptions.py:139
↓ 3 callers
Class
NonMappingHeaderContainer
test/test_collections.py:135
↓ 3 callers
Class
ProtocolError
Raised when something unexpected happens mid-request/response.
src/urllib3/exceptions.py:74
↓ 3 callers
Class
ProxyConfig
src/urllib3/_base_connection.py:12
↓ 2 callers
Class
CertificateError
src/urllib3/util/ssl_match_hostname.py:20
↓ 2 callers
Class
DecodeError
Raised when automatic decoding based on Content-Type fails.
src/urllib3/exceptions.py:70
↓ 2 callers
Class
EmscriptenResponse
src/urllib3/contrib/emscripten/response.py:23
↓ 2 callers
Class
HTTPUnixConnectionPool
test/test_connectionpool.py:51
↓ 2 callers
Class
HeaderParsingError
Raised by assert_header_parsing, but we convert it to a log.warning statement.
src/urllib3/exceptions.py:310
↓ 2 callers
Class
ImportBlocker
Block Imports To be placed on ``sys.meta_path``. This ensures that the modules specified cannot be imported, even if they are a builtin.
test/__init__.py:284
↓ 2 callers
Class
LocationValueError
Raised when there is something wrong with a given URL input.
src/urllib3/exceptions.py:178
↓ 2 callers
Class
LogRecorder
test/__init__.py:243
↓ 2 callers
Class
MaxRetryError
Raised when the maximum number of retries is exceeded. :param pool: The connection pool :type pool: :class:`~urllib3.connectionpool.HTTPConne
src/urllib3/exceptions.py:85
↓ 2 callers
Class
ModuleStash
Stashes away previously imported modules If we reimport a module the data from coverage is lost, so we reuse the old modules
test/__init__.py:315
↓ 2 callers
Class
ProxyApp
dummyserver/asgi_proxy.py:30
↓ 2 callers
Class
ProxySchemeUnsupported
Fetching HTTPS resources through HTTPS proxies is unsupported
src/urllib3/exceptions.py:306
↓ 2 callers
Class
ServerConfig
test/conftest.py:51
↓ 2 callers
Class
SocketServerThread
:param socket_handler: Callable which receives a socket argument for one request. :param ready_event: Event which gets set when the s
dummyserver/socketserver.py:96
↓ 2 callers
Class
TimeoutError
Raised when a socket timeout error occurs. Catching this error will catch both :exc:`ReadTimeoutErrors <ReadTimeoutError>` and :exc:`ConnectT
src/urllib3/exceptions.py:121
↓ 2 callers
Class
TimeoutStateError
Raised when passing an invalid state to a timeout
src/urllib3/exceptions.py:117
↓ 2 callers
Class
_StreamingError
src/urllib3/contrib/emscripten/fetch.py:80
↓ 2 callers
Class
_TimeoutError
src/urllib3/contrib/emscripten/fetch.py:84
↓ 1 callers
Class
BadBody
test/with_dummyserver/test_poolmanager.py:676
↓ 1 callers
Class
BadSeek
test/test_util.py:619
↓ 1 callers
Class
BadTellObject
test/with_dummyserver/test_connectionpool.py:1378
↓ 1 callers
Class
BaseHTTPResponse
src/urllib3/response.py:300
↓ 1 callers
Class
BodyNotHttplibCompatible
Body should be :class:`http.client.HTTPResponse` like (have an fp attribute which returns raw chunks) for read_chunked().
src/urllib3/exceptions.py:240
↓ 1 callers
Class
BrotliDecoder
src/urllib3/response.py:148
↓ 1 callers
Class
ChunksAndContentLength
src/urllib3/util/request.py:184
↓ 1 callers
Class
ClosedFile
test/test_util.py:746
↓ 1 callers
Class
ClosedPoolError
Raised when a request enters a pool after the pool has been closed.
src/urllib3/exceptions.py:174
↓ 1 callers
Class
ConnectionPool
Base class for all connection pools, such as :class:`.HTTPConnectionPool` and :class:`.HTTPSConnectionPool`. .. note:: Connection
src/urllib3/connectionpool.py:67
↓ 1 callers
Class
DeflateDecoder
src/urllib3/response.py:78
↓ 1 callers
Class
EmscriptenHTTPConnection
src/urllib3/contrib/emscripten/connection.py:25
↓ 1 callers
Class
EmscriptenHTTPSConnection
src/urllib3/contrib/emscripten/connection.py:160
↓ 1 callers
Class
EmscriptenHttpResponseWrapper
src/urllib3/contrib/emscripten/response.py:30
↓ 1 callers
Class
EmscriptenRequest
src/urllib3/contrib/emscripten/request.py:9
↓ 1 callers
Class
FpFile
test/test_util.py:762
↓ 1 callers
Class
FullPoolError
Raised when we try to add a connection to a full pool in blocking mode.
src/urllib3/exceptions.py:170
↓ 1 callers
Class
GzipDecoder
src/urllib3/response.py:116
↓ 1 callers
Class
HTTP2Response
src/urllib3/http2.py:183
↓ 1 callers
Class
HTTPError
Base exception used by this module.
src/urllib3/exceptions.py:18
↓ 1 callers
Class
HTTPHeaderDictItemView
HTTPHeaderDict is unusual for a Mapping[str, str] in that it has two modes of address. If we directly try to get an item with a particul
src/urllib3/_collections.py:158
↓ 1 callers
Class
HostChangedError
Raised when an existing pool gets a request for a foreign host.
src/urllib3/exceptions.py:106
↓ 1 callers
Class
ImportBlockerLoader
test/__init__.py:273
↓ 1 callers
Class
IncompleteRead
Response length doesn't match expected Content-Length Subclass of :class:`http.client.IncompleteRead` to allow int value for ``partial``
src/urllib3/exceptions.py:247
↓ 1 callers
Class
InvalidChunkLength
Invalid chunk length in a chunked response.
src/urllib3/exceptions.py:269
↓ 1 callers
Class
MockChunkedEncodingWithExtensions
test/test_response.py:1660
↓ 1 callers
Class
MockChunkedEncodingWithoutCRLFOnEnd
test/test_response.py:1651
↓ 1 callers
Class
MockChunkedIncompleteRead
test/test_response.py:1639
↓ 1 callers
Class
MockChunkedInvalidChunkLength
test/test_response.py:1644
↓ 1 callers
Class
MockChunkedNoChunks
test/test_response.py:1665
↓ 1 callers
Class
MockCompressedDataReading
A BytesIO-like reader returning ``payload`` in ``NUMBER_OF_READS`` calls to ``read``.
test/test_response.py:983
↓ 1 callers
Class
MockHTTPRequest
test/test_response.py:1202
↓ 1 callers
Class
MultiDecoder
From RFC7231: If one or more encodings have been applied to a representation, the sender that applied the encodings MUST generate
src/urllib3/response.py:188
↓ 1 callers
Class
NameResolutionError
Raised when host name resolution fails.
src/urllib3/exceptions.py:158
↓ 1 callers
Class
NoneFpFile
test/test_util.py:754
↓ 1 callers
Class
NotReallyAFile
test/test_util.py:770
↓ 1 callers
Class
ProxyError
Raised when the connection to a proxy fails.
src/urllib3/exceptions.py:59
↓ 1 callers
Class
ProxySchemeUnknown
ProxyManager does not support the supplied scheme
src/urllib3/exceptions.py:289
↓ 1 callers
Class
PyodideServerInfo
test/contrib/emscripten/conftest.py:196
↓ 1 callers
Class
RealBad
test/test_connectionpool.py:473
↓ 1 callers
Class
RecentlyUsedContainer
Provides a thread-safe dict-like container which maintains up to ``maxsize`` keys while throwing away the least-recently-used keys beyond
src/urllib3/_collections.py:65
↓ 1 callers
Class
ResponseError
Used as a container for an error reason supplied in a MaxRetryError.
src/urllib3/exceptions.py:202
↓ 1 callers
Class
ResponseNotChunked
Response needs to be chunked in order to read it as chunks.
src/urllib3/exceptions.py:236
↓ 1 callers
Class
ServerRunnerInfo
test/contrib/emscripten/conftest.py:107
↓ 1 callers
Class
SocketProxyDummyServer
Simulates a proxy that performs a simple I/O loop on client/server socket.
test/test_ssltransport.py:272
↓ 1 callers
Class
URLSchemeUnknown
Raised when a URL input has an unsupported scheme.
src/urllib3/exceptions.py:192
↓ 1 callers
Class
UnrewindableBodyError
urllib3 encountered an error when trying to rewind a body
src/urllib3/exceptions.py:320
↓ 1 callers
Class
WrappedSocket
API-compatibility wrapper for Python OpenSSL's Connection-class.
src/urllib3/contrib/pyopenssl.py:274
↓ 1 callers
Class
ZstdDecoder
src/urllib3/response.py:167
↓ 1 callers
Class
_ListHandler
test/__init__.py:234
↓ 1 callers
Class
_LockedObject
A wrapper class that hides a specific object behind a lock. The goal here is to provide a simple way to protect access to an object that
src/urllib3/http2.py:24
↓ 1 callers
Class
_ReadStream
src/urllib3/contrib/emscripten/fetch.py:92
↓ 1 callers
Class
_RequestError
src/urllib3/contrib/emscripten/fetch.py:66
↓ 1 callers
Class
_ResponseOptions
src/urllib3/_base_connection.py:19
↓ 1 callers
Class
_StreamingFetcher
src/urllib3/contrib/emscripten/fetch.py:194
↓ 1 callers
Class
_WrappedAndVerifiedSocket
Wrapped socket and whether the connection is verified after the TLS handshake
src/urllib3/connection.py:721
next →
1–100 of 218, ranked by callers