Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/urllib3/urllib3
/ functions
Functions
1,476 in github.com/urllib3/urllib3
⨍
Functions
1,476
◇
Types & classes
218
↳
Endpoints
57
↓ 2 callers
Method
getresponse
Get the response from the server. If the HTTPConnection is in the correct state, returns an instance of HTTPResponse or of whatever
src/urllib3/connection.py:438
↓ 2 callers
Method
geturl
(self)
src/urllib3/response.py:536
↓ 2 callers
Function
git_clone
We either clone the target repository or if already exist simply reset the state and pull.
noxfile.py:132
↓ 2 callers
Function
guess_content_type
Guess the "Content-Type" of a file. :param filename: The filename to guess the "Content-Type" of using :mod:`mimetypes`. :param
src/urllib3/fields.py:15
↓ 2 callers
Function
handle_socks5_negotiation
Handle the SOCKS5 handshake. Returns a generator object that allows us to break the handshake into steps so that the test code can inter
test/contrib/test_socks.py:127
↓ 2 callers
Function
has_alpn
Detect if ALPN support is enabled.
test/__init__.py:93
↓ 2 callers
Method
is_closed
(self)
src/urllib3/contrib/emscripten/fetch.py:117
↓ 2 callers
Function
is_cross_origin_isolated
()
src/urllib3/contrib/emscripten/fetch.py:296
↓ 2 callers
Function
is_ipaddress
Detects whether the hostname given is an IPv4 or IPv6 address. Also detects IPv6 addresses with Zone IDs. :param str hostname: Hostname to ex
src/urllib3/util/ssl_.py:469
↓ 2 callers
Function
is_worker_available
()
src/urllib3/contrib/emscripten/fetch.py:309
↓ 2 callers
Method
itermerged
Iterate over all headers, merging duplicate ones together.
src/urllib3/_collections.py:442
↓ 2 callers
Method
mark
Mark connections under in that context.
dummyserver/testcase.py:344
↓ 2 callers
Method
quit_server_thread
(server_thread: SocketServerThread)
dummyserver/testcase.py:136
↓ 2 callers
Method
read
( self, amt: int | None = None, decode_content: bool | None = None, cache_cont
src/urllib3/response.py:415
↓ 2 callers
Method
readable
(self)
src/urllib3/response.py:1066
↓ 2 callers
Method
readline
(self)
test/test_response.py:1622
↓ 2 callers
Method
recv_into
( self, buffer: _WriteBuffer, nbytes: int | None = None, flags: int = 0, )
src/urllib3/util/ssltransport.py:89
↓ 2 callers
Method
run_client_cert_with_password_test
Tests client certificate password functionality
test/with_dummyserver/test_socketlevel.py:330
↓ 2 callers
Method
send
(self, data: bytes, flags: int = 0)
src/urllib3/util/ssltransport.py:111
↓ 2 callers
Method
set_cert
This method should only be called once, before the connection is used.
src/urllib3/connection.py:572
↓ 2 callers
Method
set_ciphers
(self, ciphers: bytes | str)
src/urllib3/contrib/pyopenssl.py:442
↓ 2 callers
Method
sleep_for_retry
(self, response: BaseHTTPResponse)
src/urllib3/util/retry.py:335
↓ 2 callers
Method
ssl_version
(self)
test/with_dummyserver/test_https.py:83
↓ 2 callers
Method
stash
(self)
test/__init__.py:330
↓ 2 callers
Function
streaming_ready
()
src/urllib3/contrib/emscripten/fetch.py:406
↓ 2 callers
Method
supports_chunked_reads
Checks if the underlying file-like object looks like a :class:`http.client.HTTPResponse` object. We do this by testing for th
src/urllib3/response.py:1111
↓ 2 callers
Method
tell
(self)
test/with_dummyserver/test_connectionpool.py:1379
↓ 2 callers
Method
unwrap
(self)
src/urllib3/util/ssltransport.py:168
↓ 2 callers
Method
urlopen
( self, method: str, url: str, body: _TYPE_BODY | None = None, headers
src/urllib3/_request_methods.py:54
↓ 2 callers
Function
wait_for_read
Waits for reading to be available on a given socket. Returns True if the socket is readable, or False if the timeout expired.
src/urllib3/util/wait.py:113
↓ 2 callers
Function
wait_for_socket
( sock: socket.socket, read: bool = False, write: bool = False, timeout: float | None = None,
src/urllib3/util/wait.py:95
↓ 2 callers
Method
writable
(self)
src/urllib3/contrib/emscripten/fetch.py:141
↓ 1 callers
Method
__eq__
(self, other: object)
src/urllib3/_collections.py:274
↓ 1 callers
Method
__init__
(self, target: logging.Logger = logging.root)
test/__init__.py:244
↓ 1 callers
Method
__init__
(self, host: str, timeout: int = 60, **kwargs: typing.Any)
test/test_connectionpool.py:44
↓ 1 callers
Method
__init__
( self, host: str, port: int | None = None, *, timeout: _TYPE_TIMEOUT
src/urllib3/connection.py:131
↓ 1 callers
Method
__init__
(self)
src/urllib3/response.py:117
↓ 1 callers
Method
__init__
( self, num_pools: int = 10, headers: typing.Mapping[str, str] | None = None,
src/urllib3/poolmanager.py:199
↓ 1 callers
Method
__init__
(self, headers: ValidHTTPHeaderSource | None = None, **kwargs: str)
src/urllib3/_collections.py:242
↓ 1 callers
Method
__init__
( self, _socks_options: _TYPE_SOCKS_OPTIONS, *args: typing.Any, **kwargs: typi
src/urllib3/contrib/socks.py:89
↓ 1 callers
Method
__init__
( self, host: str, port: int = 0, *, timeout: _TYPE_TIMEOUT = _DEFAULT
src/urllib3/contrib/emscripten/connection.py:45
↓ 1 callers
Method
__init__
( self, int_buffer: JsArray, byte_buffer: JsArray, timeout: float, wor
src/urllib3/contrib/emscripten/fetch.py:93
↓ 1 callers
Method
__iter__
(self)
src/urllib3/response.py:1250
↓ 1 callers
Function
_address_from_socket
Returns the address from the SOCKS socket
test/contrib/test_socks.py:78
↓ 1 callers
Function
_can_resolve
Returns True if the system can resolve host to an address.
test/__init__.py:84
↓ 1 callers
Function
_close_pool_connections
Drains a queue of connections and closes each one.
src/urllib3/connectionpool.py:1174
↓ 1 callers
Method
_connect_tls_proxy
Establish a TLS connection to the proxy using the provided SSL context.
src/urllib3/connection.py:691
↓ 1 callers
Function
_decorator_requires_internet
Mark a decorator with the "requires_internet" mark
test/__init__.py:198
↓ 1 callers
Method
_encode_chunk
(self, chunk: bytes)
test/test_response.py:1571
↓ 1 callers
Function
_encode_target
Percent-encodes a request target so that there are no invalid characters Pre-condition for this function is that 'target' must start with '/'.
src/urllib3/util/url.py:351
↓ 1 callers
Method
_error_catcher
Catch Emscripten specific exceptions thrown by fetch.py, instead re-raising urllib3 variants, so that low-level exceptions ar
src/urllib3/contrib/emscripten/response.py:244
↓ 1 callers
Method
_fp_read
Read a response with the thought that reading the number of bytes larger than can fit in a 32-bit int at a time via SSL in some
src/urllib3/response.py:801
↓ 1 callers
Method
_get_certificate_formatted_proxy_host
(host: str)
test/with_dummyserver/test_proxy_poolmanager.py:738
↓ 1 callers
Function
_get_free_port
Gets a free port by opening a socket, binding it, checking the assigned port, and then closing it.
test/contrib/test_socks.py:38
↓ 1 callers
Method
_handle_chunk
(self, amt: int | None)
src/urllib3/response.py:1138
↓ 1 callers
Function
_has_ipv6
Returns True if the system can bind an IPv6 address.
dummyserver/socketserver.py:58
↓ 1 callers
Function
_has_route
()
test/__init__.py:171
↓ 1 callers
Method
_has_value_for_header
(self, header_name: str, potential_value: str)
src/urllib3/_collections.py:451
↓ 1 callers
Function
_idna_encode
(name: str)
src/urllib3/util/url.py:332
↓ 1 callers
Method
_init_length
(self, request_method: str | None)
src/urllib3/contrib/emscripten/response.py:102
↓ 1 callers
Function
_ipaddress_match
Exact matching of IP addresses. RFC 9110 section 4.3.5: "A reference identity of IP-ID contains the decoded bytes of the IP address. An IP ve
src/urllib3/util/ssl_match_hostname.py:80
↓ 1 callers
Function
_is_bpo_43522_fixed
Return True for CPython 3.8.9+, 3.9.3+ or 3.10+ and PyPy 7.3.8+ where setting SSLContext.hostname_checks_common_name to False works. Outside
src/urllib3/util/ssl_.py:27
↓ 1 callers
Method
_is_connection_error
Errors when we're fairly sure that the server did not receive the request, so it should be safe to retry.
src/urllib3/util/retry.py:365
↓ 1 callers
Function
_is_key_file_encrypted
Detects if a key file is encrypted or not.
src/urllib3/util/ssl_.py:482
↓ 1 callers
Method
_is_read_error
Errors that occur after the request has been started, so we should assume that the server began processing it.
src/urllib3/util/retry.py:373
↓ 1 callers
Function
_is_unreachable_err
(err: Exception)
test/__init__.py:165
↓ 1 callers
Method
_make_time_pass
Make some time pass for the timeout object
test/test_util.py:644
↓ 1 callers
Function
_normalize_host
(host: None, scheme: str | None)
src/urllib3/util/url.py:294
↓ 1 callers
Method
_pop_new_chunk
(self)
test/test_response.py:1576
↓ 1 callers
Method
_prepare_proxy
(self, conn: BaseHTTPConnection)
src/urllib3/connectionpool.py:344
↓ 1 callers
Function
_read_body
(receive: ASGIReceiveCallable)
dummyserver/asgi_proxy.py:17
↓ 1 callers
Function
_read_until
Read from the socket until the character is received.
test/contrib/test_socks.py:64
↓ 1 callers
Method
_read_write_loop
( self, client_sock: socket.socket, server_sock: socket.socket, chunks: int =
test/test_ssltransport.py:303
↓ 1 callers
Method
_real_close
(self)
src/urllib3/contrib/pyopenssl.py:378
↓ 1 callers
Function
_remove_path_dot_segments
(path: str)
src/urllib3/util/url.py:263
↓ 1 callers
Method
_render_part
Override this method to change how each multipart header parameter is formatted. By default, this calls :func:`format_multipa
src/urllib3/fields.py:244
↓ 1 callers
Function
_resolves_to_ipv6
Returns True if the system resolves host to an IPv6 address by default.
dummyserver/socketserver.py:44
↓ 1 callers
Method
_send_until_done
(self, data: bytes)
src/urllib3/contrib/pyopenssl.py:350
↓ 1 callers
Function
_set_socket_options
( sock: socket.socket, options: _TYPE_SOCKET_OPTIONS | None )
src/urllib3/util/connection.py:93
↓ 1 callers
Function
_show_streaming_warning
()
src/urllib3/contrib/emscripten/fetch.py:346
↓ 1 callers
Function
_show_timeout_warning
()
src/urllib3/contrib/emscripten/fetch.py:335
↓ 1 callers
Method
_sleep_backoff
(self)
src/urllib3/util/retry.py:343
↓ 1 callers
Function
_ssl_wrap_socket_impl
( sock: socket.socket, ssl_context: ssl.SSLContext, tls_in_tls: bool, server_hostname: str | N
src/urllib3/util/ssl_.py:493
↓ 1 callers
Method
_start_server
( cls, socket_handler: typing.Callable[[socket.socket], None], quit_event: threading.E
dummyserver/testcase.py:68
↓ 1 callers
Method
_update_chunk_length
(self)
src/urllib3/response.py:1120
↓ 1 callers
Function
_validate_dependencies_met
Verifies that PyOpenSSL's package-level dependencies have been met. Throws `ImportError` if they are not met.
src/urllib3/contrib/pyopenssl.py:159
↓ 1 callers
Method
_validate_ssl_context_for_tls_in_tls
Raises a ProxySchemeUnsupported if the provided ssl_context can't be used for TLS in TLS. The only requirement is that the s
src/urllib3/util/ssltransport.py:34
↓ 1 callers
Method
_validate_timeout
Check that a timeout attribute is valid. :param value: The timeout value to validate :param name: The name of the timeout attribute t
src/urllib3/util/timeout.py:131
↓ 1 callers
Method
_wrap_in_ssl
Given a single socket, wraps it in TLS.
test/with_dummyserver/test_socketlevel.py:197
↓ 1 callers
Method
absolute_uri
( self, scope: HTTPScope, receive: ASGIReceiveCallable, send: ASGISendCallable
dummyserver/asgi_proxy.py:45
↓ 1 callers
Function
add_stderr_logger
Helper for quickly adding a StreamHandler to the logger. Useful for debugging. Returns the handler after adding it.
src/urllib3/__init__.py:74
↓ 1 callers
Method
assert_header_received
( self, received_headers: typing.Iterable[bytes], header_name: str, expected_v
dummyserver/testcase.py:155
↓ 1 callers
Function
bind_port
Bind the socket to a free port and return the port number. Relies on ephemeral ports in order to ensure we are using an unbound port. This is
test/port_helpers.py:78
↓ 1 callers
Function
body_to_chunks
Takes the HTTP request method, body, and blocksize and transforms them into an iterable of chunks to pass to socket.sendall() and an optional
src/urllib3/util/request.py:189
↓ 1 callers
Function
choose_boundary
Our embarrassingly-simple replacement for mimetools.choose_boundary.
src/urllib3/filepost.py:22
↓ 1 callers
Function
chunk_readable
()
src/urllib3/util/request.py:222
↓ 1 callers
Method
cipher
(self)
src/urllib3/util/ssltransport.py:190
↓ 1 callers
Method
clone
Create a copy of the timeout object Timeout properties are stored per-pool but each request needs a fresh Timeout object to ensure ea
src/urllib3/util/timeout.py:188
↓ 1 callers
Method
close
(self)
src/urllib3/http2.py:166
↓ 1 callers
Method
close
(self)
src/urllib3/response.py:443
← previous
next →
201–300 of 1,476, ranked by callers