Skip to content

Commit dd4b8a7

Browse files
committed
Document support for configurable HTTP request factory in proxy clients
1 parent b2fb7b4 commit dd4b8a7

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Resources/doc/features/invalidation.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ To refresh paths and routes, you can use ``refreshPath($path, $headers)`` and
6666

6767
If you want to add a header (such as ``Authorization``) to *all*
6868
invalidation requests, you can use a
69-
:ref:`custom HTTP client <custom HTTP client>` instead.
69+
:ref:`custom HTTP client <custom HTTP client>` or
70+
:ref:`custom HTTP request factory <custom HTTP request factory>` instead.
7071

7172
.. _invalidation configuration:
7273

Resources/doc/reference/configuration/proxy-client.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,15 @@ example to send a basic authentication header with each request, you can
402402
configure a service for the ``HttpClient`` and specify that in the
403403
``http_client`` option of any of the cache proxy clients.
404404

405+
.. _custom HTTP request factory:
406+
407+
Custom HTTP Request Factory
408+
------------------
409+
410+
The proxy client uses an implementation of ``Http\Message\RequestFactory`` to create HTTP requests.
411+
If you need to customize the request creation, you can configure your custom service and
412+
specify that in the ``request_factory`` option of any of the cache proxy clients.
413+
405414
Caching Proxy Configuration
406415
---------------------------
407416

0 commit comments

Comments
 (0)