@@ -12,21 +12,21 @@ which caching solution you use.
1212Setup
1313-----
1414
15- HTTP Adapter Installation
16- ~~~~~~~~~~~~~~~~~~~~~~~~~
15+ HTTP Client Installation
16+ ~~~~~~~~~~~~~~~~~~~~~~~~
1717
18- Because the clients send invalidation requests over HTTP, an `HTTP adapter `_
19- must be installed. Which one you need depends on the HTTP client library that
20- you use in your project. For instance, if you use Guzzle 6 in your project,
21- install the appropriate adapter:
18+ Because the clients send invalidation requests over HTTP, an `HTTPlug client `_
19+ must be installed. Pick either a standalone client or an adapter to a client
20+ library that is already included in your project. For instance, if you use
21+ Guzzle 6 in your project, install the appropriate adapter:
2222
2323.. code-block :: bash
2424
2525 $ composer require php-http/guzzle6-adapter
2626
2727 You also need a `PSR-7 message implementation `_. If you use Guzzle 6, Guzzle’s
28- implementation is already included. If you use another client, install one of
29- the implementations. Recommended:
28+ implementation is already included. If you use another client, you need to
29+ install one of the message implementations. Recommended:
3030
3131.. code-block :: bash
3232
@@ -40,13 +40,13 @@ Alternatively:
4040
4141 .. _HTTP adapter configuration :
4242
43- HTTP Adapter Configuration
44- ~~~~~~~~~~~~~~~~~~~~~~~~~~
43+ HTTP Client Configuration
44+ ~~~~~~~~~~~~~~~~~~~~~~~~~
4545
46- By default, the proxy client will find the adapter that you have installed
47- through Composer. But you can also pass the adapter explicitly. This is most
48- useful when you have created a HTTP client with custom options or middleware
49- (such as logging)::
46+ By default, the proxy client will automatically locate an HTTP client that you
47+ have installed through Composer. But you can also pass the adapter explicitly.
48+ This is most useful when you have created a HTTP client with custom options or
49+ middleware (such as logging)::
5050
5151 use GuzzleHttp\Client;
5252
@@ -66,6 +66,13 @@ Then pass that adapter to the caching proxy client::
6666 $proxyClient = new Varnish($servers, '/baseUrl', $adapter);
6767 // Varnish as example, but also possible for NGINX and Symfony
6868
69+ HTTP Message Factory Configuration
70+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71+
72+ Similar to the HTTP client, the HTTP message factory is automatically located
73+ by default. You can pass an explicit instance of the message factory if you
74+ need to.
75+
6976.. _varnish client :
7077
7178Varnish Client
@@ -276,6 +283,5 @@ Varnish client::
276283Make sure to add any headers that you want to ban on to your
277284:doc: `proxy configuration <proxy-configuration >`.
278285
279- .. _header : http://php.net/header
280- .. _HTTP Adapter : http://php-http.readthedocs.org/en/latest/
286+ .. _HTTPlug client : http://httplug.io/
281287.. _PSR-7 message implementation : https://packagist.org/providers/psr/http-message-implementation
0 commit comments