Skip to content
Myr

Update `verify` parameter description (#1575)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Included that the verify parameter can be an SSL context, as it currently is missing information that is present in the advanced usage section of the documentation, and the type hints are not showing up in the interface specification. Amend verify docs for client

authored by ascopes · committed by GitHub · parent 110ce85 · Browse files · 2 files+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−2 removed

  • other:+4 added−2 removed

2 files+4 added−2 removed

modified:httpx/_api.py+2 added-1 removed
66 unmodified lines
67 the request.68 * **allow_redirects** - *(optional)* Enables or disables HTTP redirects.69 * **verify** - *(optional)* SSL certificates (a.k.a CA bundle) used to70 verify the identity of requested hosts. Either `True` (default CA bundle),71 a path to an SSL certificate file, or `False` (disable verification).71 a path to an SSL certificate file, an `ssl.SSLContext`, or `False`72 (which will disable verification).73 * **cert** - *(optional)* An SSL certificate used by the requested host74 to authenticate the client. Either a path to an SSL certificate file, or75 two-tuple of (certificate file, key file), or a three-tuple of (certificate76 file, key file, password).
362 unmodified lines
modified:httpx/_client.py+2 added-1 removed
544 unmodified lines
545 * **cookies** - *(optional)* Dictionary of Cookie items to include when546 sending requests.547 * **verify** - *(optional)* SSL certificates (a.k.a CA bundle) used to548 verify the identity of requested hosts. Either `True` (default CA bundle),549 a path to an SSL certificate file, or `False` (disable verification).549 a path to an SSL certificate file, an `ssl.SSLContext`, or `False`550 (which will disable verification).551 * **cert** - *(optional)* An SSL certificate used by the requested host552 to authenticate the client. Either a path to an SSL certificate file, or553 two-tuple of (certificate file, key file), or a three-tuple of (certificate554 file, key file, password).
1330 unmodified lines