Skip to content

Commit 57c0337

Browse files
committed
minor #12043 [HttpClient] Add buffer configuration option to http_client (rjwebdev)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpClient] Add buffer configuration option to http_client In PR symfony/symfony#32565, a regex value was added as a check to automatically buffer the content of a call. Since this is a new feature, the documentation of the http_client configuration true frameworkbundle is updated <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 0f65736 Add buffer configuration option to http_client
2 parents 63a4580 + 0f65736 commit 57c0337

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`_
@@ -120,6 +121,7 @@ Configuration
120121
* `auth_ntlm`_
121122
* `base_uri`_
122123
* `bindto`_
124+
* `buffer`_
123125
* `cafile`_
124126
* `capath`_
125127
* `ciphers`_
@@ -798,6 +800,16 @@ bindto
798800
A network interface name, IP address, a host name or a UNIX socket to use as the
799801
outgoing network interface.
800802

803+
buffer
804+
......
805+
806+
**type**: ``bool`` | ``string``
807+
808+
Option that allows to buffer the content of the response and access it multiple times without performing the request again.
809+
If boolean value given, request will be buffered or not according to the boolean value. If a string is given, this should
810+
be a regex matching the response content-types that
811+
should be buffered
812+
801813
cafile
802814
......
803815

0 commit comments

Comments
 (0)