Class Cookie
public class Cookie
- Inheritance
-
Cookie
- Inherited Members
Methods
AppliesToUri(CookieHandle, UriHandle)
Calls native method soup_cookie_applies_to_uri.
public static extern bool AppliesToUri(CookieHandle cookie, UriHandle uri)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
uri
UriHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
Copy(CookieHandle)
Calls native method soup_cookie_copy.
public static extern CookieOwnedHandle Copy(CookieHandle cookie)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
Returns
- CookieOwnedHandle
Transfer ownership: Full Nullable: False
DomainMatches(CookieHandle, NonNullableUtf8StringHandle)
Calls native method soup_cookie_domain_matches.
public static extern bool DomainMatches(CookieHandle cookie, NonNullableUtf8StringHandle host)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
host
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
Equal(CookieHandle, CookieHandle)
Calls native method soup_cookie_equal.
public static extern bool Equal(CookieHandle cookie1, CookieHandle cookie2)
Parameters
cookie1
CookieHandleTransfer ownership: None Nullable: False
cookie2
CookieHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
Free(CookieHandle)
Calls native method soup_cookie_free.
public static extern void Free(CookieHandle cookie)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
GetDomain(CookieHandle)
Calls native method soup_cookie_get_domain.
public static extern NonNullableUtf8StringUnownedHandle GetDomain(CookieHandle cookie)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: False
GetExpires(CookieHandle)
Calls native method soup_cookie_get_expires.
public static extern DateTimeUnownedHandle GetExpires(CookieHandle cookie)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
Returns
- DateTimeUnownedHandle
Transfer ownership: None Nullable: True
GetGType()
Calls native function soup_cookie_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetHttpOnly(CookieHandle)
Calls native method soup_cookie_get_http_only.
public static extern bool GetHttpOnly(CookieHandle cookie)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetName(CookieHandle)
Calls native method soup_cookie_get_name.
public static extern NonNullableUtf8StringUnownedHandle GetName(CookieHandle cookie)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: False
GetPath(CookieHandle)
Calls native method soup_cookie_get_path.
public static extern NonNullableUtf8StringUnownedHandle GetPath(CookieHandle cookie)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: False
GetSameSitePolicy(CookieHandle)
Calls native method soup_cookie_get_same_site_policy.
public static extern SameSitePolicy GetSameSitePolicy(CookieHandle cookie)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
Returns
- SameSitePolicy
Transfer ownership: None Nullable: False
GetSecure(CookieHandle)
Calls native method soup_cookie_get_secure.
public static extern bool GetSecure(CookieHandle cookie)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetValue(CookieHandle)
Calls native method soup_cookie_get_value.
public static extern NonNullableUtf8StringUnownedHandle GetValue(CookieHandle cookie)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: False
New(NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, int)
Calls native constructor soup_cookie_new.
public static extern CookieOwnedHandle New(NonNullableUtf8StringHandle name, NonNullableUtf8StringHandle value, NonNullableUtf8StringHandle domain, NonNullableUtf8StringHandle path, int maxAge)
Parameters
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
value
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
domain
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
path
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
maxAge
intTransfer ownership: None Nullable: False
Returns
- CookieOwnedHandle
Transfer ownership: Full Nullable: False
Parse(NonNullableUtf8StringHandle, UriHandle)
Calls native function soup_cookie_parse.
public static extern CookieOwnedHandle Parse(NonNullableUtf8StringHandle header, UriHandle origin)
Parameters
header
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
origin
UriHandleTransfer ownership: None Nullable: True
Returns
- CookieOwnedHandle
Transfer ownership: Full Nullable: True
SetDomain(CookieHandle, NonNullableUtf8StringHandle)
Calls native method soup_cookie_set_domain.
public static extern void SetDomain(CookieHandle cookie, NonNullableUtf8StringHandle domain)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
domain
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
SetExpires(CookieHandle, DateTimeHandle)
Calls native method soup_cookie_set_expires.
public static extern void SetExpires(CookieHandle cookie, DateTimeHandle expires)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
expires
DateTimeHandleTransfer ownership: None Nullable: False
SetHttpOnly(CookieHandle, bool)
Calls native method soup_cookie_set_http_only.
public static extern void SetHttpOnly(CookieHandle cookie, bool httpOnly)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
httpOnly
boolTransfer ownership: None Nullable: False
SetMaxAge(CookieHandle, int)
Calls native method soup_cookie_set_max_age.
public static extern void SetMaxAge(CookieHandle cookie, int maxAge)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
maxAge
intTransfer ownership: None Nullable: False
SetName(CookieHandle, NonNullableUtf8StringHandle)
Calls native method soup_cookie_set_name.
public static extern void SetName(CookieHandle cookie, NonNullableUtf8StringHandle name)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
SetPath(CookieHandle, NonNullableUtf8StringHandle)
Calls native method soup_cookie_set_path.
public static extern void SetPath(CookieHandle cookie, NonNullableUtf8StringHandle path)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
path
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
SetSameSitePolicy(CookieHandle, SameSitePolicy)
Calls native method soup_cookie_set_same_site_policy.
public static extern void SetSameSitePolicy(CookieHandle cookie, SameSitePolicy policy)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
policy
SameSitePolicyTransfer ownership: None Nullable: False
SetSecure(CookieHandle, bool)
Calls native method soup_cookie_set_secure.
public static extern void SetSecure(CookieHandle cookie, bool secure)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
secure
boolTransfer ownership: None Nullable: False
SetValue(CookieHandle, NonNullableUtf8StringHandle)
Calls native method soup_cookie_set_value.
public static extern void SetValue(CookieHandle cookie, NonNullableUtf8StringHandle value)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
value
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
ToCookieHeader(CookieHandle)
Calls native method soup_cookie_to_cookie_header.
public static extern NonNullableUtf8StringOwnedHandle ToCookieHeader(CookieHandle cookie)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
ToSetCookieHeader(CookieHandle)
Calls native method soup_cookie_to_set_cookie_header.
public static extern NonNullableUtf8StringOwnedHandle ToSetCookieHeader(CookieHandle cookie)
Parameters
cookie
CookieHandleTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False