Skip to content

Commit 0f65736

Browse files
authored
Add buffer configuration option to http_client
In PR 32565, a regex value was added as a check to automatically buffer the content of a call
1 parent 7db9d2e commit 0f65736

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

reference/configuration/framework.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Configuration
9393
* :ref:`default_options <reference-http-client-default-options>`
9494

9595
* `bindto`_
96+
* `buffer`_
9697
* `cafile`_
9798
* `capath`_
9899
* `ciphers`_
@@ -118,6 +119,7 @@ Configuration
118119
* `auth_bearer`_
119120
* `base_uri`_
120121
* `bindto`_
122+
* `buffer`_
121123
* `cafile`_
122124
* `capath`_
123125
* `ciphers`_
@@ -779,6 +781,16 @@ bindto
779781
A network interface name, IP address, a host name or a UNIX socket to use as the
780782
outgoing network interface.
781783

784+
buffer
785+
......
786+
787+
**type**: ``bool`` | ``string``
788+
789+
Option that allows to buffer the content of the response and access it multiple times without performing the request again.
790+
If boolean value given, request will be buffered or not according to the boolean value. If a string is given, this should
791+
be a regex matching the response content-types that
792+
should be buffered
793+
782794
cafile
783795
......
784796

0 commit comments

Comments
 (0)