get_cookie_list


Description:

public SList<Cookie> get_cookie_list (Uri uri, bool for_http)

Retrieves the list of cookies that would be sent with a request to uri as a [struct@GLib.

List] of Cookie objects.

If for_http is true, the return value will include cookies marked "HttpOnly" (that is, cookies that the server wishes to keep hidden from client-side scripting operations such as the JavaScript document.cookies property). Since CookieJar sets the Cookie header itself when making the actual HTTP request, you should almost certainly be setting for_http to false if you are calling this.

Parameters:

this

a CookieJar

uri

a Uri

for_http

whether or not the return value is being passed directly to an HTTP operation

Returns:

a SList with the cookies in the this that would be sent with a request to uri.