Table of Contents

Class CookieJar

Namespace
Soup.Internal
Assembly
Soup-3.0.dll
public class CookieJar
Inheritance
CookieJar
Inherited Members

Methods

AddCookie(IntPtr, CookieUnownedHandle)

Calls native method soup_cookie_jar_add_cookie.

public static extern void AddCookie(IntPtr jar, CookieUnownedHandle cookie)

Parameters

jar IntPtr

Transfer ownership: None Nullable: False

cookie CookieUnownedHandle

Transfer ownership: Full Nullable: False

AddCookieFull(IntPtr, CookieUnownedHandle, UriHandle, UriHandle)

Calls native method soup_cookie_jar_add_cookie_full.

public static extern void AddCookieFull(IntPtr jar, CookieUnownedHandle cookie, UriHandle uri, UriHandle firstParty)

Parameters

jar IntPtr

Transfer ownership: None Nullable: False

cookie CookieUnownedHandle

Transfer ownership: Full Nullable: False

uri UriHandle

Transfer ownership: None Nullable: True

firstParty UriHandle

Transfer ownership: None Nullable: True

AddCookieWithFirstParty(IntPtr, UriHandle, CookieUnownedHandle)

Calls native method soup_cookie_jar_add_cookie_with_first_party.

public static extern void AddCookieWithFirstParty(IntPtr jar, UriHandle firstParty, CookieUnownedHandle cookie)

Parameters

jar IntPtr

Transfer ownership: None Nullable: False

firstParty UriHandle

Transfer ownership: None Nullable: False

cookie CookieUnownedHandle

Transfer ownership: Full Nullable: False

AllCookies(IntPtr)

Calls native method soup_cookie_jar_all_cookies.

public static extern SListOwnedHandle AllCookies(IntPtr jar)

Parameters

jar IntPtr

Transfer ownership: None Nullable: False

Returns

SListOwnedHandle

Transfer ownership: Full Nullable: False

DeleteCookie(IntPtr, CookieHandle)

Calls native method soup_cookie_jar_delete_cookie.

public static extern void DeleteCookie(IntPtr jar, CookieHandle cookie)

Parameters

jar IntPtr

Transfer ownership: None Nullable: False

cookie CookieHandle

Transfer ownership: None Nullable: False

GetAcceptPolicy(IntPtr)

Calls native method soup_cookie_jar_get_accept_policy.

public static extern CookieJarAcceptPolicy GetAcceptPolicy(IntPtr jar)

Parameters

jar IntPtr

Transfer ownership: None Nullable: False

Returns

CookieJarAcceptPolicy

Transfer ownership: None Nullable: False

GetCookieList(IntPtr, UriHandle, bool)

Calls native method soup_cookie_jar_get_cookie_list.

public static extern SListOwnedHandle GetCookieList(IntPtr jar, UriHandle uri, bool forHttp)

Parameters

jar IntPtr

Transfer ownership: None Nullable: False

uri UriHandle

Transfer ownership: None Nullable: False

forHttp bool

Transfer ownership: None Nullable: False

Returns

SListOwnedHandle

Transfer ownership: Full Nullable: False

GetCookieListWithSameSiteInfo(IntPtr, UriHandle, UriHandle, UriHandle, bool, bool, bool)

Calls native method soup_cookie_jar_get_cookie_list_with_same_site_info.

public static extern SListOwnedHandle GetCookieListWithSameSiteInfo(IntPtr jar, UriHandle uri, UriHandle topLevel, UriHandle siteForCookies, bool forHttp, bool isSafeMethod, bool isTopLevelNavigation)

Parameters

jar IntPtr

Transfer ownership: None Nullable: False

uri UriHandle

Transfer ownership: None Nullable: False

topLevel UriHandle

Transfer ownership: None Nullable: True

siteForCookies UriHandle

Transfer ownership: None Nullable: True

forHttp bool

Transfer ownership: None Nullable: False

isSafeMethod bool

Transfer ownership: None Nullable: False

isTopLevelNavigation bool

Transfer ownership: None Nullable: False

Returns

SListOwnedHandle

Transfer ownership: Full Nullable: False

GetCookies(IntPtr, UriHandle, bool)

Calls native method soup_cookie_jar_get_cookies.

public static extern NullableUtf8StringOwnedHandle GetCookies(IntPtr jar, UriHandle uri, bool forHttp)

Parameters

jar IntPtr

Transfer ownership: None Nullable: False

uri UriHandle

Transfer ownership: None Nullable: False

forHttp bool

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

GetGType()

Calls native function soup_cookie_jar_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

IsPersistent(IntPtr)

Calls native method soup_cookie_jar_is_persistent.

public static extern bool IsPersistent(IntPtr jar)

Parameters

jar IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

New()

Calls native constructor soup_cookie_jar_new.

public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: Full Nullable: False

SetAcceptPolicy(IntPtr, CookieJarAcceptPolicy)

Calls native method soup_cookie_jar_set_accept_policy.

public static extern void SetAcceptPolicy(IntPtr jar, CookieJarAcceptPolicy policy)

Parameters

jar IntPtr

Transfer ownership: None Nullable: False

policy CookieJarAcceptPolicy

Transfer ownership: None Nullable: False

SetCookie(IntPtr, UriHandle, NonNullableUtf8StringHandle)

Calls native method soup_cookie_jar_set_cookie.

public static extern void SetCookie(IntPtr jar, UriHandle uri, NonNullableUtf8StringHandle cookie)

Parameters

jar IntPtr

Transfer ownership: None Nullable: False

uri UriHandle

Transfer ownership: None Nullable: False

cookie NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetCookieWithFirstParty(IntPtr, UriHandle, UriHandle, NonNullableUtf8StringHandle)

Calls native method soup_cookie_jar_set_cookie_with_first_party.

public static extern void SetCookieWithFirstParty(IntPtr jar, UriHandle uri, UriHandle firstParty, NonNullableUtf8StringHandle cookie)

Parameters

jar IntPtr

Transfer ownership: None Nullable: False

uri UriHandle

Transfer ownership: None Nullable: False

firstParty UriHandle

Transfer ownership: None Nullable: False

cookie NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False