get_cookie_list_with_same_site_info


Description:

public SList<Cookie> get_cookie_list_with_same_site_info (Uri uri, Uri? top_level, Uri? site_for_cookies, bool for_http, bool is_safe_method, bool is_top_level_navigation)

This is an extended version of [method@CookieJar.

get_cookie_list] that provides more information required to use SameSite cookies.

See the [SameSite cookies spec](https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00) for more detailed information.

Parameters:

this

a CookieJar

uri

a Uri

top_level

a Uri for the top level document

site_for_cookies

a Uri indicating the origin to get cookies for

for_http

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

is_safe_method

if the HTTP method is safe, as defined by RFC 7231, ignored when for_http is false

is_top_level_navigation

whether or not the HTTP request is part of top level navigation

Returns:

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