Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CookieJarInterface.php

function 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 32

Class

CookieJarInterface
Stores HTTP cookies.

Namespace

GuzzleHttp\Cookie

Code

public function withCookieHeader(RequestInterface $request) : RequestInterface;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal