@@ -251,6 +251,9 @@ The client session supports the context manager protocol for self closing.
251
251
:param bool allow_redirects: If set to ``False ``, do not follow redirects.
252
252
``True `` by default (optional).
253
253
254
+ :param int max_redirects: Maximum number of redirects to follow.
255
+ ``10 `` by default.
256
+
254
257
:param bool compress: Set to ``True `` if request has to be compressed
255
258
with deflate encoding. If `compress ` can not be combined
256
259
with a *Content-Encoding * and *Content-Length * headers.
@@ -501,7 +504,7 @@ The client session supports the context manager protocol for self closing.
501
504
502
505
:param bool autoclose: Automatically close websocket connection on close
503
506
message from server. If *autoclose * is False
504
- them close procedure has to be handled manually.
507
+ then close procedure has to be handled manually.
505
508
``True `` by default
506
509
507
510
:param bool autoping: automatically send *pong * on *ping *
@@ -514,7 +517,7 @@ The client session supports the context manager protocol for self closing.
514
517
reception.(optional)
515
518
516
519
:param str origin: Origin header to send to server(optional)
517
-
520
+
518
521
:param dict headers: HTTP Headers to send with
519
522
the request (optional)
520
523
@@ -565,7 +568,7 @@ The client session supports the context manager protocol for self closing.
565
568
authority channel, supported SSL options etc.
566
569
567
570
.. versionadded :: 2.3
568
-
571
+
569
572
.. deprecated :: 3.0
570
573
571
574
Use ``ssl=ssl_context ``
@@ -1727,6 +1730,18 @@ Response errors
1727
1730
1728
1731
.. versionadded :: 2.3
1729
1732
1733
+
1734
+ .. class :: TooManyRedirects
1735
+
1736
+ Client was redirected too many times.
1737
+
1738
+ Maximum number of redirects can be configured by using
1739
+ parameter ``max_redirects `` in :meth: `request<aiohttp.ClientSession.request> `.
1740
+
1741
+ Derived from :exc: `ClientResponseError `
1742
+
1743
+ .. versionadded :: 3.2
1744
+
1730
1745
Connection errors
1731
1746
^^^^^^^^^^^^^^^^^
1732
1747
0 commit comments