cookiesFromRequest

fnsoup.cookie.Cookie[] cookiesFromRequest(soup.message.Message msg)

Parses msg's Cookie request header and returns a [glib.slist.SList] of [soup.cookie.Cookie]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 funccookies_to_response.)

Parameters

msga #SoupMessage containing a "Cookie" request header

Returns

a #GSList of

[soup.cookie.Cookie]s, which can be freed with [soup.cookie.Cookie.free].