Skip to content

Commit ac1e0a2

Browse files
ajgarlagjaviereguiluz
authored andcommitted
[HttpClient] Document new option auto_upgrade_http_version
1 parent 22890da commit ac1e0a2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

http_client.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,6 +1789,17 @@ You can also pass a set of default options to your client thanks to the
17891789

17901790
// ...
17911791

1792+
.. _auto-upgrade-http-version:
1793+
1794+
.. versionadded:: 7.4
1795+
1796+
Starting in Symfony 7.4, the option `auto_upgrade_http_version` can
1797+
be set to false to disable automatic HTTP protocol version upgrade when
1798+
desired.
1799+
1800+
The automatic HTTP version upgrade is always disabled for HTTP/1.0 requests,
1801+
regardless of the option value.
1802+
17921803
HTTPlug
17931804
~~~~~~~
17941805

@@ -1890,6 +1901,9 @@ You can also pass a set of default options to your client thanks to the
18901901

18911902
// ...
18921903

1904+
1905+
See :ref:`auto_upgrade_http_version <auto-upgrade-http-version>` option for details about how the HTTP protocol version selection works.
1906+
18931907
Native PHP Streams
18941908
~~~~~~~~~~~~~~~~~~
18951909

0 commit comments

Comments
 (0)