You are here

public function CookieJarInterface::setCookie in Zircon Profile 8

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

Sets a cookie in the cookie jar.

Parameters

SetCookie $cookie Cookie to set.:

Return value

bool Returns true on success or false on failure

1 method overrides CookieJarInterface::setCookie()
CookieJar::setCookie in vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php
Sets a cookie in the cookie jar.

File

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

Class

CookieJarInterface
Stores HTTP cookies.

Namespace

GuzzleHttp\Cookie

Code

public function setCookie(SetCookie $cookie);