Pyjo.Cookie.Response - HTTP response cookie¶
Pyjo.Cookie.Response
cookie = Pyjo.Cookie.Response.new()
cookie.name = 'foo'
cookie.value = 'bar'
print(cookie)
Pyjo.Cookie.Response
is a container for HTTP response cookies based on
RFC 6265.
Classes¶
-
class
Pyjo.Cookie.Response.
Pyjo_Cookie_Response
(**kwargs)¶ Pyjo.Cookie.Response
inherits all attributes and methods fromPyjo.Cookie
and implements the following new ones.-
domain
= None¶ domain = cookie.domain cookie.domain = 'localhost'
Cookie domain.
-
expires
= None¶ expires = cookie.expires cookie.expires = steady_time() + 60
Expiration for cookie.
-
httponly
= None¶ boolean = cookie.httponly cookie.httponly = boolean
HttpOnly flag, which can prevent client-side scripts from accessing this cookie.
-
max_age
= None¶ max_age = cookie.max_age cookie.max_age = 60
Max age for cookie.
-
origin
= None¶ origin = cookie.origin cookie.origin = 'mojolicio.us'
Origin of the cookie.
-
classmethod
parse
(string='')¶ cookies = Pyjo.Cookie.Response.parse('f=b; path=/')
Parse cookies.
-
path
= None¶ path = cookie.path cookie.path = '/test'
Cookie path.
-
secure
= None¶ boolean = cookie.secure cookie.secure = boolean
Secure flag, which instructs browsers to only send this cookie over HTTPS connections.
-
to_str
()¶ string = cookie.to_str()
Render cookie.
-
-
Pyjo.Cookie.Response.
object
¶ alias of
Pyjo_Cookie_Response