Function soup::cookies_from_request
source · pub fn cookies_from_request(msg: &Message) -> Vec<Cookie>
Expand description
Parses @msg’s Cookie request header and returns a glib::SList
of
SoupCookie
s.
As the “Cookie” header, unlike “Set-Cookie”, only contains cookie names and
values, none of the other #SoupCookie fields will be filled in. (Thus, you
can’t generally pass a cookie returned from this method directly to
cookies_to_response()
.)
§msg
a #SoupMessage containing a “Cookie” request header
§Returns
a #GSList of
SoupCookie
s, which can be freed with Cookie::free()
.