Pyjo.Cookie.Request inherits all attributes and methods from Pyjo.Cookie and implements the following new ones.

cookies = Pyjo.Cookie.Request.parse('f=b; g=a')
cookies = Pyjo.Cookie.Request.parse(SimpleCookie('f=b; g=a'))

Parse cookies, also from a http.cookies.SimpleCookie of the standard library.

string = cookie.to_str()

Render cookie.

Pyjo.Cookie.Request.parse(string: str | BaseCookie[str] | None = None) → list[C][source]
cookies = Pyjo.Cookie.Request.parse('f=b; g=a')
cookies = Pyjo.Cookie.Request.parse(SimpleCookie('f=b; g=a'))

Parse cookies, also from a http.cookies.SimpleCookie of the standard library.