MCPcopy Create free account

hub / github.com/urllib3/urllib3 / functions

Functions1,476 in github.com/urllib3/urllib3

Methodstream
( self, amt: int | None = 2**16, decode_content: bool | None = None )
src/urllib3/response.py:410
Methodstream
A generator wrapper for the read() method. A call will block until ``amt`` bytes have been read from the connection or until the
src/urllib3/contrib/emscripten/response.py:76
Functionstub_timezone
A pytest fixture that runs the test with a stub timezone.
test/conftest.py:298
Functionsuccessful_retry
First return an error and then success It's not currently very flexible as the number of retries is hard-coded.
dummyserver/app.py:288
Functionsupported_tls_versions
()
test/conftest.py:307
Methodteardown_class
(cls)
test/test_util.py:1119
Methodteardown_class
(cls)
test/test_ssltransport.py:367
Methodteardown_class
(cls)
test/with_dummyserver/test_socketlevel.py:194
Methodteardown_class
(cls)
test/with_dummyserver/test_proxy_poolmanager.py:76
Methodteardown_class
(cls)
dummyserver/testcase.py:147
Methodteardown_class
(cls)
dummyserver/testcase.py:223
Methodteardown_class
(cls)
dummyserver/testcase.py:310
Methodteardown_method
(self)
dummyserver/testcase.py:151
Functionteardown_module
()
test/contrib/test_pyopenssl_dependencies.py:22
Functionteardown_module
()
test/contrib/test_pyopenssl.py:29
Methodtest_303_redirect_makes_request_lose_body
(self)
test/with_dummyserver/test_connectionpool.py:483
Methodtest_303_redirect_makes_request_lose_body
(self)
test/with_dummyserver/test_poolmanager.py:271
Functiontest_404
(selenium_coverage: typing.Any, testserver_http: PyodideServerInfo)
test/contrib/emscripten/test_emscripten.py:204
Methodtest_HTTPSConnection_default_socket_options
(self)
test/test_connection.py:209
Methodtest_Url_str
(self)
test/test_util.py:358
Methodtest__iter__
(self, payload: bytes, expected_stream: list[bytes])
test/test_response.py:1486
Methodtest__iter__decode_content
(self)
test/test_response.py:1493
Methodtest_access_ordering
(self)
test/test_collections.py:58
Methodtest_add_comma_separated_multiheader
(self, d: HTTPHeaderDict)
test/test_collections.py:238
Methodtest_add_stderr_logger
(self)
test/test_util.py:626
Methodtest_add_well_known_multiheader
(self, d: HTTPHeaderDict)
test/test_collections.py:233
Methodtest_allowed_methods_with_status_forcelist
(self)
test/test_retry.py:253
Methodtest_alpn_default
Default ALPN protocols are sent by default.
test/with_dummyserver/test_https.py:945
Methodtest_alpn_protocol_in_first_request_packet
(self)
test/with_dummyserver/test_socketlevel.py:109
Methodtest_assert_fingerprint_closes_socket
(self)
test/test_connection.py:241
Methodtest_assert_fingerprint_md5
(self)
test/with_dummyserver/test_https.py:458
Methodtest_assert_fingerprint_raises_exception_on_none_cert
(self)
test/test_ssl.py:228
Methodtest_assert_fingerprint_sha1
(self)
test/with_dummyserver/test_https.py:469
Methodtest_assert_fingerprint_sha256
(self)
test/with_dummyserver/test_https.py:482
Methodtest_assert_header_parsing_no_error_on_multipart
(self)
test/test_util.py:843
Methodtest_assert_header_parsing_throws_typeerror_with_non_headers
( self, headers: bytes | object | None )
test/test_util.py:803
Methodtest_assert_hostname_and_fingerprint_flag
Assert that pool manager can accept hostname and fingerprint flags.
test/test_poolmanager.py:240
Methodtest_assert_hostname_closes_socket
(self)
test/test_connection.py:256
Methodtest_assert_hostname_false
(self)
test/with_dummyserver/test_https.py:415
Methodtest_assert_hostname_invalid_cn
Ensure CN errors are not raised while assert_hostname is false
test/with_dummyserver/test_https.py:1120
Methodtest_assert_hostname_invalid_san
Ensure SAN errors are not raised while assert_hostname is false
test/with_dummyserver/test_https.py:1107
Methodtest_assert_invalid_fingerprint
(self)
test/with_dummyserver/test_https.py:496
Methodtest_assert_same_host
(self)
test/test_connectionpool.py:367
Methodtest_assert_specific_hostname
(self)
test/with_dummyserver/test_https.py:426
Functiontest_audit_event
(audit_mock: mock.Mock, pool: HTTPConnectionPool)
test/with_dummyserver/test_connection.py:35
Methodtest_authority
(self, url: str, expected_authority: str | None)
test/test_util.py:417
Methodtest_authority_matches_urllib_netloc
Validate this matches the behavior of urlparse().netloc
test/test_util.py:421
Methodtest_backoff
Backoff is computed correctly
test/test_retry.py:134
Methodtest_backoff_jitter
Backoff with jitter is computed correctly
test/test_retry.py:184
Methodtest_backoff_reset_after_redirect
(self)
test/test_retry.py:220
Methodtest_bad_connect
(self)
test/with_dummyserver/test_connectionpool.py:494
Methodtest_bad_decode
(self)
test/with_dummyserver/test_connectionpool.py:625
Functiontest_bad_method
( selenium_coverage: typing.Any, testserver_http: PyodideServerInfo )
test/contrib/emscripten/test_emscripten.py:162
Methodtest_bad_statusline
(self)
test/with_dummyserver/test_socketlevel.py:1715
Methodtest_base_io
(self)
test/test_response.py:590
Methodtest_basic_ipv6_proxy
(self)
test/with_dummyserver/test_proxy_poolmanager.py:719
Methodtest_basic_proxy
(self)
test/with_dummyserver/test_proxy_poolmanager.py:80
Methodtest_basic_request
(self)
test/contrib/test_socks.py:248
Methodtest_basic_request
(self)
test/contrib/test_socks.py:555
Methodtest_basic_request
(self)
test/contrib/test_socks.py:734
Methodtest_body
(self)
test/with_dummyserver/test_poolmanager.py:501
Methodtest_body_blob
(self)
test/test_response.py:584
Functiontest_break_worker_streaming
( selenium_coverage: typing.Any, testserver_http: PyodideServerInfo, run_from_server: ServerRunner
test/contrib/emscripten/test_emscripten.py:751
Functiontest_brotlipy
Check that if 'brotlipy' is installed instead of 'brotli' or 'brotlicffi' that we still don't blow up.
noxfile.py:124
Methodtest_buffer_memory_usage_decode_one_chunk
( self, preload_content: bool, amt: int, read_meth: str )
test/test_response.py:1099
Methodtest_buffer_memory_usage_no_decoding
( self, preload_content: bool, amt: int, read_meth: str )
test/test_response.py:1123
Methodtest_buggy_incomplete_read
(self)
test/test_response.py:1311
Methodtest_bytes_header
(self)
test/with_dummyserver/test_connectionpool.py:1053
Methodtest_bytestring_body
(self)
test/with_dummyserver/test_chunked_transfer.py:78
Methodtest_ca_certs_default_cert_required
(self)
test/test_connectionpool.py:461
Methodtest_ca_dir_verified
(self, tmp_path: Path)
test/with_dummyserver/test_https.py:272
Methodtest_cache_content
(self)
test/test_response.py:165
Methodtest_cache_content_preload_false
(self)
test/test_response.py:171
Methodtest_can_validate_ip_san
Ensure that urllib3 can validate SANs with IP addresses in them.
test/with_dummyserver/test_https.py:1135
Methodtest_can_validate_ipv6_san
Ensure that urllib3 can validate SANs with IPv6 addresses in them.
test/with_dummyserver/test_https.py:1149
Methodtest_can_validate_san
Ensure that urllib3 can validate SANs with IP addresses in them.
test/with_dummyserver/test_https.py:1019
Methodtest_cannot_import_ssl
(self)
test/test_no_ssl.py:35
Methodtest_check_deflate
(self)
test/with_dummyserver/test_connectionpool.py:617
Methodtest_check_gzip
(self)
test/with_dummyserver/test_connectionpool.py:609
Methodtest_chunked_decoding_brotli
(self)
test/test_response.py:384
Methodtest_chunked_decoding_deflate
(self)
test/test_response.py:283
Methodtest_chunked_decoding_deflate2
(self)
test/test_response.py:296
Methodtest_chunked_decoding_gzip
(self, content_encoding: str)
test/test_response.py:312
Methodtest_chunked_decoding_gzip_swallow_garbage
(self)
test/test_response.py:364
Methodtest_chunked_decoding_zstd
(self)
test/test_response.py:435
Methodtest_chunked_gzip
(self)
test/with_dummyserver/test_connectionpool.py:842
Methodtest_chunked_head_response
(self)
test/test_response.py:1407
Methodtest_chunked_head_response_does_not_hang
(self)
test/with_dummyserver/test_socketlevel.py:2001
Methodtest_chunked_not_specified
(self, method: str, body_type: str)
test/with_dummyserver/test_socketlevel.py:2401
Methodtest_chunked_response_with_extensions
(self)
test/test_response.py:1395
Methodtest_chunked_response_without_crlf_on_end
(self)
test/test_response.py:1383
Methodtest_chunked_specified
( self, method: str, chunked: bool, body_type: str )
test/with_dummyserver/test_socketlevel.py:2332
Methodtest_chunks
(self, chunks: list[bytes | str])
test/with_dummyserver/test_chunked_transfer.py:44
Methodtest_cleanup_on_connection_error
Test that connections are recycled to the pool on connection errors where no http response is received.
test/with_dummyserver/test_connectionpool.py:850
Methodtest_cleanup_on_extreme_connection_error
This test validates that we clean up properly even on exceptions that we'd not otherwise catch, i.e. those that inherit from BaseExce
test/test_connectionpool.py:466
Methodtest_client_cert_with_bytes_password
(self)
test/with_dummyserver/test_socketlevel.py:327
Methodtest_client_cert_with_string_password
(self)
test/with_dummyserver/test_socketlevel.py:324
Methodtest_client_certs_one_file
Having a client cert and its associated private key in just one file works properly.
test/with_dummyserver/test_socketlevel.py:255
Methodtest_client_certs_two_files
Having a client cert in a separate file to its associated key works properly.
test/with_dummyserver/test_socketlevel.py:211
Methodtest_client_encrypted_key_requires_password
(self)
test/with_dummyserver/test_https.py:212
← previousnext →701–800 of 1,476, ranked by callers