summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary elif blocksHasan Ramezani2021-07-111-2/+2
|
* Change sub-class of NameResolutionError to NewConnectionErrorQuentin Pradet2021-07-083-13/+9
| | | | | | | This solves various problems: * Adding `NameResolutionError` is no longer a breaking change * Retries are supported again * `ProxyError` is raised again for all proxy related errors
* Upgrade mypy to 0.910 and fix IncompleteRead exception typesHasan Ramezani2021-07-082-7/+9
|
* Remove a few unnecessary `# type: ignore` commentsQuentin Pradet2021-07-084-18/+10
|
* Add type hints to urllib3.responseHasan Ramezani2021-07-032-124/+163
|
* Add py.typed file to signal types are defined inlinejohnthagen2021-07-031-0/+2
|
* Add type hints to urllib3.contrib.pyopensslHasan Ramezani2021-07-031-61/+87
|
* Add type hints to urllib3.contrib.securetransportHasan Ramezani2021-06-293-130/+171
|
* Raise NameResolutionError instead of socket.gaierror (#2305)euri102021-06-283-1/+16
| | | The new exception still derives from `socket.gaierror`, so this isn't a breaking change.
* Add type hints to urllib3.contrib._securetransport.low_levelHasan Ramezani2021-06-211-20/+36
|
* Don't emit multiple Transfer-Encoding headers in request_chunked()Vishwas B Sharma2021-06-211-1/+1
|
* Make all type aliases private and the same formatVishwas B Sharma2021-06-2111-36/+40
|
* Ignore type checks for urllib3.contrib._securetransport.bindingsHasan Ramezani2021-06-211-1/+5
|
* Make parameters after method and url keyword-only for urllib3.request()Frederico Lima2021-06-201-0/+1
| | | Co-authored-by: Fred <frederico.lima@ifood.com.br>
* Add type hints to urllib3.contrib.ntlmpoolHasan Ramezani2021-06-191-14/+18
|
* Add cycle-breaking logic to create_connection()Ran Benita2021-06-191-6/+11
| | | This commit synchronizes create_connection() with the implementation in the socket module
* Fix remove_headers_on_redirect feature modifying passed-in headers in-place ↵Ran Benita2021-06-191-4/+5
| | | | | | | | | | | | | (#2272) In general I'd say it's expected in Python that when passing a dict to to an argument like `headers` that it won't be modified in-place and could be reused safely for further requests. Previously the remove_headers_on_redirect feature didn't uphold this. Do a copy to make sure that it does. This commit additionally *avoids* an unneeded copy when the `remove_headers_on_redirect` code isn't reached.
* Add type hints to urllib3.contrib.socks Hasan Ramezani2021-06-183-15/+50
|
* Tolerate the strict parameter being passed via connection_from_context()Hasan Ramezani2021-06-161-0/+9
|
* Added `preload_content`, `retries`, `redirect` and `timeout` arguments to ↵ubdussamad2021-06-161-2/+16
| | | | urllib3.request()
* Install idna in mypy nox sessionHasan Ramezani2021-06-141-4/+2
|
* Add type hints to urllib3/__init__.pyHasan Ramezani2021-06-101-5/+13
|
* Align multipart parameter encoding with current WHATWG HTML standardDavid Lord2021-06-101-57/+101
|
* Fix ssl deprecation warnings in Python 3.10Seth Michael Larson2021-06-074-10/+27
|
* Skip coverage of AttributeError exception in HTTPConnectionPool._get_conn()Hasan Ramezani2021-06-031-1/+1
|
* Add type hints to urllib3.connectionpoolHasan Ramezani2021-06-037-118/+167
|
* Add type hints to urllib3.poolmanager (#2232)Hasan Ramezani2021-05-315-72/+143
| | | Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
* Merge pull request from GHSA-q2q7-5pp4-w6pgSeth Michael Larson2021-05-261-3/+5
|
* Add documentation guidelines to contributing docs, apply to guidesubdussamad2021-05-215-47/+92
|
* Added body parameter to top-level request() and RequestMethods.request()Bastian Venthur2021-05-192-2/+6
|
* Changed :ret: RST directive to :returns:Bastian Venthur2021-05-181-2/+2
|
* Added HTTPHeaderDict to top level moduleubdussamad2021-05-171-0/+2
|
* Add type hints to urllib3.util.retryHasan Ramezani2021-05-141-53/+72
|
* Add type hints to urllib3.util.timeoutHasan Ramezani2021-05-111-18/+29
|
* Remove urllib3.util.current_time, use time.monotonic insteadHasan Ramezani2021-05-112-8/+3
|
* Fix default socket_options value for HTTPSConnectionFranek Magiera2021-05-101-1/+3
|
* Add type hints to urllib3.requestHasan Ramezani2021-05-071-22/+43
|
* Add type hints to urllib3.util.requestHasan Ramezani2021-05-071-12/+15
|
* Add type hints to urllib3.util.utilHasan Ramezani2021-05-061-2/+2
|
* Raise FullPoolError when _put_conn() is called on full blocking poolDmitry Mazin2021-05-012-2/+20
|
* Change from str.format() to f-stringsFranek Magiera2021-05-012-6/+5
|
* Fix handling of conn without sock in is_connection_dropped()Christian Neumüller2021-04-271-1/+1
|
* Move ssl_match_hostname to urllib3.utilsHasan Ramezani2021-04-217-27/+14
|
* Add type hints for proxy, ssl_, ssltransport and wait modulesFranek Magiera2021-04-205-71/+225
|
* Add type hints to connection modulesFranek Magiera2021-04-126-113/+238
|
* Update accept_encoding=True documentation for BrotliДилян Палаузов2021-03-291-1/+2
|
* Use queue.LifoQueue instead of our own implementationDulmandakh2021-03-182-18/+1
| | | Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
* Stop relying on stdlib hostname matching until hostname_checks_common_name ↵Quentin Pradet2021-03-181-2/+4
| | | | | | | | | | bug fixed I can't make hostname_checks_common_name work, either locally or on GitHub Actions, so stop using the standard library to match hostnames for now. Per https://bugs.python.org/issue43522 this is a bug in CPython ssl module and will likely be available in 3.10.0-alpha7 of CPython
* Lean on SSLContext to verify hostnames when possible (#2178)Quentin Pradet2021-03-164-24/+27
| | | | | | | | | | | | | | | | | | | | | | | * Use exact same SNI logic in pyOpenSSL and SecureTransport It won't make a difference in practice, and avoids useless differences. * Move "no SNI if IP address" responsibilty to TLS backends * The ssl module already avoids SNI when the host is an IP address * pyOpenSSL now does that too * We were already using SNI on IP addresses with SecureTransport anyway In other words, this does not change anything, but is cleaner (we no longer test for SecureTransport in ssl.py) and will allow us to lean on ssl.SSLContext to match hostnames. * Stop exposing is_ipaddress as a public We already have way too much public functions * Lean on SSLContext to verify hostnames when possible * Address review comments
* Always use our custom ssl.match_hostname() implementationQuentin Pradet2021-03-162-21/+1
| | | Python's implementation still accepts commonName and we don't want that behavior.