cookie_parse
Description:
[ Version ( replacement = "Cookie.parse" , since = "2.24" ) ]
public Cookie? cookie_parse (string header, URI origin)
Parses header and returns a Cookie.
(If header contains multiple cookies, only the first one will be parsed.)
If header does not have "path" or "domain" attributes, they will be defaulted from origin. If origin is
null, path will default to "/", but domain will be left as null. Note that this is not a valid state for a
Cookie, and you will need to fill in some appropriate string for the domain if you
want to actually make use of the cookie.
Parameters:
| header |
a cookie string (eg, the value of a Set-Cookie header) |
| origin |
origin of the cookie, or |
Returns:
|
a new Cookie, or |
Namespace: Soup
Package: libsoup-2.4