[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/Requests/Cookie/ -> Jar.php (summary)

Cookie holder object

File Size: 175 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Requests_Cookie_Jar:: (11 methods):
  __construct()
  normalize_cookie()
  normalizeCookie()
  offsetExists()
  offsetGet()
  offsetSet()
  offsetUnset()
  getIterator()
  register()
  before_request()
  before_redirect_check()


Class: Requests_Cookie_Jar  - X-Ref

Cookie holder object

__construct($cookies = array()   X-Ref
Create a new jar

param: array $cookies Existing cookie values

normalize_cookie($cookie, $key = null)   X-Ref
Normalise cookie data into a Requests_Cookie

return: Requests_Cookie
param: string|Requests_Cookie $cookie

normalizeCookie($cookie, $key = null)   X-Ref
Normalise cookie data into a Requests_Cookie

return: Requests_Cookie

offsetExists($key)   X-Ref
Check if the given item exists

return: boolean Does the item exist?
param: string $key Item key

offsetGet($key)   X-Ref
Get the value for the item

return: string|null Item value (null if offsetExists is false)
param: string $key Item key

offsetSet($key, $value)   X-Ref
Set the given item

param: string $key Item name
param: string $value Item value

offsetUnset($key)   X-Ref
Unset the given header

param: string $key

getIterator()   X-Ref
Get an iterator for the data

return: ArrayIterator

register(Requests_Hooker $hooks)   X-Ref
Register the cookie handler with the request's hooking system

param: Requests_Hooker $hooks Hooking system

before_request($url, &$headers, &$data, &$type, &$options)   X-Ref
Add Cookie header to a request if we have any

As per RFC 6265, cookies are separated by '; '

param: string $url
param: array $headers
param: array $data
param: string $type
param: array $options

before_redirect_check(Requests_Response $return)   X-Ref
Parse all cookies from a response and attach them to the response




Generated: Thu Dec 15 01:00:02 2022 Cross-referenced by PHPXref 0.7.1