withCookieHeader()
withCookieHeader(\Psr\Http\Message\RequestInterface $request) : \Psr\Http\Message\RequestInterface
Create a request with added cookie headers.
If no matching cookies are found in the cookie jar, then no Cookie header is added to the request and the same request is returned.
Parameters
\Psr\Http\Message\RequestInterface | $request | Request object to modify. |
Returns
\Psr\Http\Message\RequestInterface —returns the modified request.