cookies_from_request


Description:


public SList<Cookie> cookies_from_request (Message msg)

Parses msg's Cookie request header and returns a [struct@GLib.

SList] of `SoupCookie`s.

As the "Cookie" header, unlike "Set-Cookie", only contains cookie names and values, none of the other Cookie fields will be filled in. (Thus, you can't generally pass a cookie returned from this method directly to [func@cookies_to_response].)

Parameters:

msg

a Message containing a "Cookie" request header

Returns:

a SList of `SoupCookie`s, which can be freed with [[email protected]].


Namespace: Soup
Package: libsoup-3.0



2022 vala-language.org