Skip to content

Commit

Permalink
Update docs for ssl param in client (#8403)
Browse files Browse the repository at this point in the history
(cherry picked from commit 06033c2)
  • Loading branch information
aitor-gamarra authored and patchback[bot] committed May 8, 2024
1 parent c215e56 commit fa2f4af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGES/8403.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve the docs for the `ssl` params.
12 changes: 6 additions & 6 deletions docs/client_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ The client session supports the context manager protocol for self closing.
read_until_eof=True, \
read_bufsize=None, \
proxy=None, proxy_auth=None,\
timeout=sentinel, ssl=None, \
timeout=sentinel, ssl=True, \
verify_ssl=None, fingerprint=None, \
ssl_context=None, proxy_headers=None, \
server_hostname=None, auto_decompress=None)
Expand Down Expand Up @@ -491,7 +491,7 @@ The client session supports the context manager protocol for self closing.

If :class:`float` is passed it is a *total* timeout (in seconds).

:param ssl: SSL validation mode. ``None`` for default SSL check
:param ssl: SSL validation mode. ``True`` for default SSL check
(:func:`ssl.create_default_context` is used),
``False`` for skip SSL certificate validation,
:class:`aiohttp.Fingerprint` for fingerprint
Expand Down Expand Up @@ -696,7 +696,7 @@ The client session supports the context manager protocol for self closing.
origin=None, \
params=None, \
headers=None, \
proxy=None, proxy_auth=None, ssl=None, \
proxy=None, proxy_auth=None, ssl=True, \
verify_ssl=None, fingerprint=None, \
ssl_context=None, proxy_headers=None, \
compress=0, max_msg_size=4194304)
Expand Down Expand Up @@ -760,7 +760,7 @@ The client session supports the context manager protocol for self closing.
:param aiohttp.BasicAuth proxy_auth: an object that represents proxy HTTP
Basic Authorization (optional)

:param ssl: SSL validation mode. ``None`` for default SSL check
:param ssl: SSL validation mode. ``True`` for default SSL check
(:func:`ssl.create_default_context` is used),
``False`` for skip SSL certificate validation,
:class:`aiohttp.Fingerprint` for fingerprint
Expand Down Expand Up @@ -1066,7 +1066,7 @@ is controlled by *force_close* constructor's parameter).
overridden in subclasses.


.. class:: TCPConnector(*, ssl=None, verify_ssl=True, fingerprint=None, \
.. class:: TCPConnector(*, ssl=True, verify_ssl=True, fingerprint=None, \
use_dns_cache=True, ttl_dns_cache=10, \
family=0, ssl_context=None, local_addr=None, \
resolver=None, keepalive_timeout=sentinel, \
Expand All @@ -1084,7 +1084,7 @@ is controlled by *force_close* constructor's parameter).
Constructor accepts all parameters suitable for
:class:`BaseConnector` plus several TCP-specific ones:

:param ssl: SSL validation mode. ``None`` for default SSL check
:param ssl: SSL validation mode. ``True`` for default SSL check
(:func:`ssl.create_default_context` is used),
``False`` for skip SSL certificate validation,
:class:`aiohttp.Fingerprint` for fingerprint
Expand Down

0 comments on commit fa2f4af

Please sign in to comment.