HTTPCookie

from panda3d.core import HTTPCookie
class HTTPCookie

Bases: DTOOL_SUPER_BASE

A cookie sent from an HTTP server to be stored on the client and returned when the path and/or domain matches.

Inheritance diagram

Inheritance diagram of HTTPCookie

SSLax = 1
SSNone = 3
SSStrict = 2
SSUnspecified = 0
SS_lax = 1
SS_none = 3
SS_strict = 2
SS_unspecified = 0
__init__(*args, **kwargs)
clearExpires()

C++ Interface: clear_expires(const HTTPCookie self)

/**
  • Removes the expiration date on the cookie.

*/

clear_expires()

C++ Interface: clear_expires(const HTTPCookie self)

/**
  • Removes the expiration date on the cookie.

*/

domain
expires
getDomain()

C++ Interface: get_domain(HTTPCookie self)

/**

*/

getExpires()

C++ Interface: get_expires(HTTPCookie self)

/**
  • Returns the expiration date of the cookie if it is set, or an invalid date

  • if it is not.

*/

getName()

C++ Interface: get_name(HTTPCookie self)

/**
  • Returns the name of the cookie. This is the key value specified by the

  • server.

*/

getPath()

C++ Interface: get_path(HTTPCookie self)

/**
  • Returns the prefix of the URL paths on the server for which this cookie

  • will be sent.

*/

getSamesite()

C++ Interface: get_samesite(HTTPCookie self)

/**

*/

getSecure()

C++ Interface: get_secure(HTTPCookie self)

/**
  • Returns true if the server has indicated this is a “secure” cookie which

  • should only be sent over an HTTPS channel.

*/

getValue()

C++ Interface: get_value(HTTPCookie self)

/**
  • Returns the value of the cookie. This is the arbitrary string associated

  • with the cookie’s name, as specified by the server.

*/

get_domain()

C++ Interface: get_domain(HTTPCookie self)

/**

*/

get_expires()

C++ Interface: get_expires(HTTPCookie self)

/**
  • Returns the expiration date of the cookie if it is set, or an invalid date

  • if it is not.

*/

get_name()

C++ Interface: get_name(HTTPCookie self)

/**
  • Returns the name of the cookie. This is the key value specified by the

  • server.

*/

get_path()

C++ Interface: get_path(HTTPCookie self)

/**
  • Returns the prefix of the URL paths on the server for which this cookie

  • will be sent.

*/

get_samesite()

C++ Interface: get_samesite(HTTPCookie self)

/**

*/

get_secure()

C++ Interface: get_secure(HTTPCookie self)

/**
  • Returns true if the server has indicated this is a “secure” cookie which

  • should only be sent over an HTTPS channel.

*/

get_value()

C++ Interface: get_value(HTTPCookie self)

/**
  • Returns the value of the cookie. This is the arbitrary string associated

  • with the cookie’s name, as specified by the server.

*/

hasExpires()

C++ Interface: has_expires(HTTPCookie self)

/**
  • Returns true if the cookie has an expiration date, false otherwise.

*/

has_expires()

C++ Interface: has_expires(HTTPCookie self)

/**
  • Returns true if the cookie has an expiration date, false otherwise.

*/

isExpired()

C++ Interface: is_expired(HTTPCookie self, const HTTPDate now)

/**
  • Returns true if the cookie’s expiration date is before the indicated date,

  • false otherwise.

*/

is_expired()

C++ Interface: is_expired(HTTPCookie self, const HTTPDate now)

/**
  • Returns true if the cookie’s expiration date is before the indicated date,

  • false otherwise.

*/

matchesUrl()

C++ Interface: matches_url(HTTPCookie self, const URLSpec url)

/**
  • Returns true if the cookie is appropriate to send with the indicated URL

  • request, false otherwise.

*/

matches_url()

C++ Interface: matches_url(HTTPCookie self, const URLSpec url)

/**
  • Returns true if the cookie is appropriate to send with the indicated URL

  • request, false otherwise.

*/

name
output()

C++ Interface: output(HTTPCookie self, ostream out)

/**

*/

parseSetCookie()

C++ Interface: parse_set_cookie(const HTTPCookie self, str format, const URLSpec url)

/**
  • Separates out the parameter/value pairs of the Set-Cookie header and

  • assigns the values of the cookie appropriate. Returns true if the header

  • is parsed correctly, false if something is not understood.

*/

C++ Interface: parse_set_cookie(const HTTPCookie self, str format, const URLSpec url)

/**
  • Separates out the parameter/value pairs of the Set-Cookie header and

  • assigns the values of the cookie appropriate. Returns true if the header

  • is parsed correctly, false if something is not understood.

*/

path
secure
setDomain()

C++ Interface: set_domain(const HTTPCookie self, str domain)

/**

*/

setExpires()

C++ Interface: set_expires(const HTTPCookie self, const HTTPDate expires)

/**

*/

setName()

C++ Interface: set_name(const HTTPCookie self, str name)

/**

*/

setPath()

C++ Interface: set_path(const HTTPCookie self, str path)

/**

*/

setSamesite()

C++ Interface: set_samesite(const HTTPCookie self, int samesite)

/**

*/

setSecure()

C++ Interface: set_secure(const HTTPCookie self, bool flag)

/**

*/

setValue()

C++ Interface: set_value(const HTTPCookie self, str value)

/**

*/

set_domain()

C++ Interface: set_domain(const HTTPCookie self, str domain)

/**

*/

set_expires()

C++ Interface: set_expires(const HTTPCookie self, const HTTPDate expires)

/**

*/

set_name()

C++ Interface: set_name(const HTTPCookie self, str name)

/**

*/

set_path()

C++ Interface: set_path(const HTTPCookie self, str path)

/**

*/

set_samesite()

C++ Interface: set_samesite(const HTTPCookie self, int samesite)

/**

*/

set_secure()

C++ Interface: set_secure(const HTTPCookie self, bool flag)

/**

*/

set_value()

C++ Interface: set_value(const HTTPCookie self, str value)

/**

*/

updateFrom()

C++ Interface: update_from(const HTTPCookie self, const HTTPCookie other)

/**
  • Assuming the operator < method, above, has already evaluated these two

  • cookies as equal, then assign the remaining values (value, expiration date,

  • secure flag) from the indicated cookie. This is guaranteed not to change

  • the ordering of the cookie in a set, and so can be used to update an

  • existing cookie within a set with new values.

*/

update_from()

C++ Interface: update_from(const HTTPCookie self, const HTTPCookie other)

/**
  • Assuming the operator < method, above, has already evaluated these two

  • cookies as equal, then assign the remaining values (value, expiration date,

  • secure flag) from the indicated cookie. This is guaranteed not to change

  • the ordering of the cookie in a set, and so can be used to update an

  • existing cookie within a set with new values.

*/

value