class Requests_Cookie {}

In this article

Cookie storage object

Methods

NameDescription
Requests_Cookie::__constructCreate a new cookie object
Requests_Cookie::__toStringGet the cookie value
Requests_Cookie::domain_matchesCheck if a cookie is valid for a given domain
Requests_Cookie::format_for_headerFormat a cookie for a Cookie header
Requests_Cookie::format_for_set_cookieFormat a cookie for a Set-Cookie header
Requests_Cookie::formatForHeaderFormat a cookie for a Cookie header — deprecated
Requests_Cookie::formatForSetCookieFormat a cookie for a Set-Cookie header — deprecated
Requests_Cookie::is_expiredCheck if a cookie is expired.
Requests_Cookie::normalizeNormalize cookie and attributes
Requests_Cookie::normalize_attributeParse an individual cookie attribute
Requests_Cookie::parseParse a cookie string into a cookie object
Requests_Cookie::parse_from_headersParse all Set-Cookie headers from request headers
Requests_Cookie::parseFromHeadersParse all Set-Cookie headers from request headers — deprecated
Requests_Cookie::path_matchesCheck if a cookie is valid for a given path
Requests_Cookie::uri_matchesCheck if a cookie is valid for a given URI

Source

User Contributed Notes

You must log in before being able to contribute a note or feedback.