@@ -452,11 +452,16 @@ The client session supports the context manager protocol for self closing.
452
452
:param aiohttp.BasicAuth auth: an object that represents HTTP
453
453
Basic Authorization (optional)
454
454
455
- :param bool allow_redirects: If set to ``False ``, do not follow redirects.
456
- ``True `` by default (optional).
455
+ :param bool allow_redirects: Whether to process redirects or not.
456
+ When ``True ``, redirects are followed (up to ``max_redirects `` times)
457
+ and logged into :attr: `ClientResponse.history ` and ``trace_configs ``.
458
+ When ``False ``, the original response is returned.
459
+ ``True `` by default (optional).
457
460
458
461
:param int max_redirects: Maximum number of redirects to follow.
459
- ``10 `` by default.
462
+ :exc: `TooManyRedirects ` is raised if the number is exceeded.
463
+ Ignored when ``allow_redirects=False ``.
464
+ ``10 `` by default.
460
465
461
466
:param bool compress: Set to ``True `` if request has to be compressed
462
467
with deflate encoding. If `compress ` can not be combined
@@ -558,8 +563,11 @@ The client session supports the context manager protocol for self closing.
558
563
559
564
:param url: Request URL, :class: `str ` or :class: `~yarl.URL `
560
565
561
- :param bool allow_redirects: If set to ``False ``, do not follow redirects.
562
- ``True `` by default (optional).
566
+ :param bool allow_redirects: Whether to process redirects or not.
567
+ When ``True ``, redirects are followed and logged into
568
+ :attr: `ClientResponse.history `.
569
+ When ``False ``, the original response is returned.
570
+ ``True `` by default (optional).
563
571
564
572
:return ClientResponse: a :class: `client response
565
573
<ClientResponse> ` object.
@@ -627,8 +635,11 @@ The client session supports the context manager protocol for self closing.
627
635
628
636
:param url: Request URL, :class: `str ` or :class: `~yarl.URL `
629
637
630
- :param bool allow_redirects: If set to ``False ``, do not follow redirects.
631
- ``False `` by default (optional).
638
+ :param bool allow_redirects: Whether to process redirects or not.
639
+ When ``True ``, redirects are followed and logged into
640
+ :attr: `ClientResponse.history `.
641
+ When ``False ``, the original response is returned.
642
+ ``False `` by default (optional).
632
643
633
644
:return ClientResponse: a :class: `client response
634
645
<ClientResponse> ` object.
@@ -645,8 +656,11 @@ The client session supports the context manager protocol for self closing.
645
656
646
657
:param url: Request URL, :class: `str ` or :class: `~yarl.URL `
647
658
648
- :param bool allow_redirects: If set to ``False ``, do not follow redirects.
649
- ``True `` by default (optional).
659
+ :param bool allow_redirects: Whether to process redirects or not.
660
+ When ``True ``, redirects are followed and logged into
661
+ :attr: `ClientResponse.history `.
662
+ When ``False ``, the original response is returned.
663
+ ``True `` by default (optional).
650
664
651
665
:return ClientResponse: a :class: `client response
652
666
<ClientResponse> ` object.
@@ -878,8 +892,11 @@ certification chaining.
878
892
:param aiohttp.BasicAuth auth: an object that represents HTTP Basic
879
893
Authorization (optional)
880
894
881
- :param bool allow_redirects: If set to ``False ``, do not follow redirects.
882
- ``True `` by default (optional).
895
+ :param bool allow_redirects: Whether to process redirects or not.
896
+ When ``True ``, redirects are followed (up to ``max_redirects `` times)
897
+ and logged into :attr: `ClientResponse.history ` and ``trace_configs ``.
898
+ When ``False ``, the original response is returned.
899
+ ``True `` by default (optional).
883
900
884
901
:param aiohttp.protocol.HttpVersion version: Request HTTP version (optional)
885
902
0 commit comments