CookieJar.getCookieListWithSameSiteInfo

This is an extended version of soup_cookie_jar_get_cookie_list() that provides more information required to use SameSite cookies. See the SameSite cookies spec

for more detailed information.

class CookieJar
ListSG
getCookieListWithSameSiteInfo

Parameters

uri URI

a #SoupURI

topLevel URI

a #SoupURI for the top level document

siteForCookies URI

a #SoupURI indicating the origin to get cookies for

forHttp bool

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

isSafeMethod bool

if the HTTP method is safe, as defined by RFC 7231, ignored when @for_http is %FALSE

isTopLevelNavigation bool

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

Return Value

Type: ListSG

a #GSList with the cookies in the @jar that would be sent with a request to @uri.

Meta

Since

2.70