@@ -448,11 +448,16 @@ The client session supports the context manager protocol for self closing.
448
448
:param aiohttp.BasicAuth auth: an object that represents HTTP
449
449
Basic Authorization (optional)
450
450
451
- :param bool allow_redirects: If set to ``False ``, do not follow redirects.
452
- ``True `` by default (optional).
451
+ :param bool allow_redirects: Whether to process redirects or not.
452
+ When ``True ``, redirects are followed (up to ``max_redirects `` times)
453
+ and logged into :attr: `ClientResponse.history ` and ``trace_configs ``.
454
+ When ``False ``, the original response is returned.
455
+ ``True `` by default (optional).
453
456
454
457
:param int max_redirects: Maximum number of redirects to follow.
455
- ``10 `` by default.
458
+ :exc: `TooManyRedirects ` is raised if the number is exceeded.
459
+ Ignored when ``allow_redirects=False ``.
460
+ ``10 `` by default.
456
461
457
462
:param bool compress: Set to ``True `` if request has to be compressed
458
463
with deflate encoding. If `compress ` can not be combined
@@ -554,8 +559,11 @@ The client session supports the context manager protocol for self closing.
554
559
555
560
:param url: Request URL, :class: `str ` or :class: `~yarl.URL `
556
561
557
- :param bool allow_redirects: If set to ``False ``, do not follow redirects.
558
- ``True `` by default (optional).
562
+ :param bool allow_redirects: Whether to process redirects or not.
563
+ When ``True ``, redirects are followed and logged into
564
+ :attr: `ClientResponse.history `.
565
+ When ``False ``, the original response is returned.
566
+ ``True `` by default (optional).
559
567
560
568
:return ClientResponse: a :class: `client response
561
569
<ClientResponse> ` object.
@@ -623,8 +631,11 @@ The client session supports the context manager protocol for self closing.
623
631
624
632
:param url: Request URL, :class: `str ` or :class: `~yarl.URL `
625
633
626
- :param bool allow_redirects: If set to ``False ``, do not follow redirects.
627
- ``False `` by default (optional).
634
+ :param bool allow_redirects: Whether to process redirects or not.
635
+ When ``True ``, redirects are followed and logged into
636
+ :attr: `ClientResponse.history `.
637
+ When ``False ``, the original response is returned.
638
+ ``False `` by default (optional).
628
639
629
640
:return ClientResponse: a :class: `client response
630
641
<ClientResponse> ` object.
@@ -641,8 +652,11 @@ The client session supports the context manager protocol for self closing.
641
652
642
653
:param url: Request URL, :class: `str ` or :class: `~yarl.URL `
643
654
644
- :param bool allow_redirects: If set to ``False ``, do not follow redirects.
645
- ``True `` by default (optional).
655
+ :param bool allow_redirects: Whether to process redirects or not.
656
+ When ``True ``, redirects are followed and logged into
657
+ :attr: `ClientResponse.history `.
658
+ When ``False ``, the original response is returned.
659
+ ``True `` by default (optional).
646
660
647
661
:return ClientResponse: a :class: `client response
648
662
<ClientResponse> ` object.
@@ -874,8 +888,11 @@ certification chaining.
874
888
:param aiohttp.BasicAuth auth: an object that represents HTTP Basic
875
889
Authorization (optional)
876
890
877
- :param bool allow_redirects: If set to ``False ``, do not follow redirects.
878
- ``True `` by default (optional).
891
+ :param bool allow_redirects: Whether to process redirects or not.
892
+ When ``True ``, redirects are followed (up to ``max_redirects `` times)
893
+ and logged into :attr: `ClientResponse.history ` and ``trace_configs ``.
894
+ When ``False ``, the original response is returned.
895
+ ``True `` by default (optional).
879
896
880
897
:param aiohttp.protocol.HttpVersion version: Request HTTP version (optional)
881
898
0 commit comments