File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ Configuration
93
93
* :ref: `default_options <reference-http-client-default-options >`
94
94
95
95
* `bindto `_
96
+ * `buffer `_
96
97
* `cafile `_
97
98
* `capath `_
98
99
* `ciphers `_
@@ -120,6 +121,7 @@ Configuration
120
121
* `auth_ntlm `_
121
122
* `base_uri `_
122
123
* `bindto `_
124
+ * `buffer `_
123
125
* `cafile `_
124
126
* `capath `_
125
127
* `ciphers `_
@@ -773,6 +775,24 @@ bindto
773
775
A network interface name, IP address, a host name or a UNIX socket to use as the
774
776
outgoing network interface.
775
777
778
+ buffer
779
+ ......
780
+
781
+ **type **: ``bool `` | ``Closure ``
782
+
783
+ Buffering the response means that you can access its content multiple times
784
+ without performing the request again. Buffering is enabled by default when the
785
+ content type of the response is ``text/* ``, ``application/json `` or ``application/xml ``.
786
+
787
+ If this option is a boolean value, the response is buffered when the value is
788
+ ``true ``. If this option is a closure, the response is buffered when the
789
+ returned value is ``true `` (the closure receives as argument an array with the
790
+ response headers).
791
+
792
+ .. versionadded :: 4.4
793
+
794
+ The support of ``Closure `` in the ``buffer `` option was introduced in Symfony 4.4.
795
+
776
796
cafile
777
797
......
778
798
You can’t perform that action at this time.
0 commit comments