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
- 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
- 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.
*/
- 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_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_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
- 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.
*/
- parse_set_cookie()
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
- 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