You are here

public function CookieJarInterface::withCookieHeader in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php \GuzzleHttp\Cookie\CookieJarInterface::withCookieHeader()

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);