Function soup::cookies_from_response
source · pub fn cookies_from_response(msg: &Message) -> Vec<Cookie>
Expand description
Parses @msg’s Set-Cookie response headers and returns a glib::SList
of SoupCookie
s.
Cookies that do not specify “path” or “domain” attributes will have their values defaulted from @msg.
§msg
a #SoupMessage containing a “Set-Cookie” response header
§Returns
a #GSList of
SoupCookie
s, which can be freed with Cookie::free()
.