8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a97c580 commit d61e497Copy full SHA for d61e497
plugins/cookie.rst
@@ -1,4 +1,19 @@
1
Cookie Plugin
2
=============
3
4
-TODO: explain the cookie plugin
+Cookie plugins allow you to sore cookies information in a `CookieJar` and reuses them on consequent requests according
5
+to `RFC 6265`_ specification::
6
+
7
+ use Http\Discovery\HttpClientDiscovery;
8
+ use Http\Message\CookieJar;
9
+ use Http\Plugins\PluginClient;
10
+ use Http\Plugins\CookiePlugin;
11
12
+ $cookiePlugin = new CookiePlugin(new CookieJar());
13
14
+ $pluginClient = new PluginClient(
15
+ HttpClientDiscovery::find(),
16
+ [$cookiePlugin]
17
+ );
18
19
+.. _RFC 6265: https://tools.ietf.org/html/rfc6265
0 commit comments