[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/guzzlehttp/guzzle/src/Cookie/ -> CookieJarInterface.php (summary)

(no description)

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

Defines 1 class

CookieJarInterface:: (5 methods):
  addCookieHeader()
  extractCookies()
  setCookie()
  clear()
  clearSessionCookies()


Interface: CookieJarInterface  - X-Ref

Stores HTTP cookies.

It extracts cookies from HTTP requests, and returns them in HTTP responses.
CookieJarInterface instances automatically expire contained cookies when
necessary. Subclasses are also responsible for storing and retrieving
cookies from a file, database, etc.

addCookieHeader(RequestInterface $request)   X-Ref
Add a Cookie header to a request.

If no matching cookies are found in the cookie jar, then no Cookie
header is added to the request.

param: RequestInterface $request Request object to update

extractCookies(RequestInterface $request,ResponseInterface $response)   X-Ref
Extract cookies from an HTTP response and store them in the CookieJar.

param: RequestInterface  $request  Request that was sent
param: ResponseInterface $response Response that was received

setCookie(SetCookie $cookie)   X-Ref
Sets a cookie in the cookie jar.

param: SetCookie $cookie Cookie to set.
return: bool Returns true on success or false on failure

clear($domain = null, $path = null, $name = null)   X-Ref
Remove cookies currently held in the cookie jar.

Invoking this method without arguments will empty the whole cookie jar.
If given a $domain argument only cookies belonging to that domain will
be removed. If given a $domain and $path argument, cookies belonging to
the specified path within that domain are removed. If given all three
arguments, then the cookie with the specified name, path and domain is
removed.

param: string $domain Clears cookies matching a domain
param: string $path   Clears cookies matching a domain and path
param: string $name   Clears cookies matching a domain, path, and name
return: CookieJarInterface

clearSessionCookies()   X-Ref
Discard all sessions cookies.

Removes cookies that don't have an expire field or a have a discard
field set to true. To be called when the user agent shuts down according
to RFC 2965.



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1