Table of Contents

Class Cookie

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

Methods

Calls native method soup_cookie_applies_to_uri.

public static extern bool AppliesToUri(CookieHandle cookie, UriHandle uri)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

uri UriHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Calls native method soup_cookie_copy.

public static extern CookieOwnedHandle Copy(CookieHandle cookie)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

Returns

CookieOwnedHandle

Transfer ownership: Full Nullable: False

Calls native method soup_cookie_domain_matches.

public static extern bool DomainMatches(CookieHandle cookie, NonNullableUtf8StringHandle host)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

host NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Calls native method soup_cookie_equal.

public static extern bool Equal(CookieHandle cookie1, CookieHandle cookie2)

Parameters

cookie1 CookieHandle

Transfer ownership: None Nullable: False

cookie2 CookieHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Calls native method soup_cookie_free.

public static extern void Free(CookieHandle cookie)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

Calls native method soup_cookie_get_domain.

public static extern NonNullableUtf8StringUnownedHandle GetDomain(CookieHandle cookie)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

Calls native method soup_cookie_get_expires.

public static extern DateTimeUnownedHandle GetExpires(CookieHandle cookie)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

Returns

DateTimeUnownedHandle

Transfer ownership: None Nullable: True

Calls native function soup_cookie_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

Calls native method soup_cookie_get_http_only.

public static extern bool GetHttpOnly(CookieHandle cookie)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Calls native method soup_cookie_get_name.

public static extern NonNullableUtf8StringUnownedHandle GetName(CookieHandle cookie)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

Calls native method soup_cookie_get_path.

public static extern NonNullableUtf8StringUnownedHandle GetPath(CookieHandle cookie)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

Calls native method soup_cookie_get_same_site_policy.

public static extern SameSitePolicy GetSameSitePolicy(CookieHandle cookie)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

Returns

SameSitePolicy

Transfer ownership: None Nullable: False

Calls native method soup_cookie_get_secure.

public static extern bool GetSecure(CookieHandle cookie)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Calls native method soup_cookie_get_value.

public static extern NonNullableUtf8StringUnownedHandle GetValue(CookieHandle cookie)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

Calls native constructor soup_cookie_new.

public static extern CookieOwnedHandle New(NonNullableUtf8StringHandle name, NonNullableUtf8StringHandle value, NonNullableUtf8StringHandle domain, NonNullableUtf8StringHandle path, int maxAge)

Parameters

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

domain NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

path NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

maxAge int

Transfer ownership: None Nullable: False

Returns

CookieOwnedHandle

Transfer ownership: Full Nullable: False

Calls native function soup_cookie_parse.

public static extern CookieOwnedHandle Parse(NonNullableUtf8StringHandle header, UriHandle origin)

Parameters

header NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

origin UriHandle

Transfer ownership: None Nullable: True

Returns

CookieOwnedHandle

Transfer ownership: Full Nullable: True

Calls native method soup_cookie_set_domain.

public static extern void SetDomain(CookieHandle cookie, NonNullableUtf8StringHandle domain)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

domain NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Calls native method soup_cookie_set_expires.

public static extern void SetExpires(CookieHandle cookie, DateTimeHandle expires)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

expires DateTimeHandle

Transfer ownership: None Nullable: False

Calls native method soup_cookie_set_http_only.

public static extern void SetHttpOnly(CookieHandle cookie, bool httpOnly)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

httpOnly bool

Transfer ownership: None Nullable: False

Calls native method soup_cookie_set_max_age.

public static extern void SetMaxAge(CookieHandle cookie, int maxAge)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

maxAge int

Transfer ownership: None Nullable: False

Calls native method soup_cookie_set_name.

public static extern void SetName(CookieHandle cookie, NonNullableUtf8StringHandle name)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Calls native method soup_cookie_set_path.

public static extern void SetPath(CookieHandle cookie, NonNullableUtf8StringHandle path)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

path NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Calls native method soup_cookie_set_same_site_policy.

public static extern void SetSameSitePolicy(CookieHandle cookie, SameSitePolicy policy)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

policy SameSitePolicy

Transfer ownership: None Nullable: False

Calls native method soup_cookie_set_secure.

public static extern void SetSecure(CookieHandle cookie, bool secure)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

secure bool

Transfer ownership: None Nullable: False

Calls native method soup_cookie_set_value.

public static extern void SetValue(CookieHandle cookie, NonNullableUtf8StringHandle value)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

value NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Calls native method soup_cookie_to_cookie_header.

public static extern NonNullableUtf8StringOwnedHandle ToCookieHeader(CookieHandle cookie)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

Calls native method soup_cookie_to_set_cookie_header.

public static extern NonNullableUtf8StringOwnedHandle ToSetCookieHeader(CookieHandle cookie)

Parameters

cookie CookieHandle

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False