You are here

public function CookieJarInterface::withCookieHeader in Lockr 7.3

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

RequestInterface $request Request object to modify.:

Return value

RequestInterface returns the modified request.

1 method overrides CookieJarInterface::withCookieHeader()
CookieJar::withCookieHeader in vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php
Create a request with added cookie headers.

File

vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php, line 29

Class

CookieJarInterface
Stores HTTP cookies.

Namespace

GuzzleHttp\Cookie

Code

public function withCookieHeader(RequestInterface $request);