public function Request::getCookies

Get an array of Cookies

Return value

array

Overrides RequestInterface::getCookies

1 call to Request::getCookies()
Request::getCookie in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php
Get a cookie value by name

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php, line 563

Class

Request
HTTP request class to send requests

Namespace

Guzzle\Http\Message

Code

public function getCookies() {
  if ($cookie = $this
    ->getHeader('Cookie')) {
    $data = ParserRegistry::getInstance()
      ->getParser('cookie')
      ->parseCookie($cookie);
    return $data['cookies'];
  }
  return array();
}