Table of Contents

Class CookieJar

Namespace
Soup
Assembly
Soup-3.0.dll
public class CookieJar : Object, IObject, INotifyPropertyChanged, IDisposable, SessionFeature, IHandle, GTypeProvider
Inheritance
CookieJar
Implements
Derived
Inherited Members

Constructors

CookieJar(bool, params ConstructArgument[])

protected CookieJar(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

CookieJar(IntPtr, bool)

protected CookieJar(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

AcceptPolicyPropertyDefinition

public static readonly Property<CookieJarAcceptPolicy, CookieJar> AcceptPolicyPropertyDefinition

Field Value

Property<CookieJarAcceptPolicy, CookieJar>

ChangedSignal

Signal Descriptor for OnChanged.

public static readonly Signal<CookieJar, CookieJar.ChangedSignalArgs> ChangedSignal

Field Value

Signal<CookieJar, CookieJar.ChangedSignalArgs>

ReadOnlyPropertyDefinition

public static readonly Property<bool, CookieJar> ReadOnlyPropertyDefinition

Field Value

Property<bool, CookieJar>

Properties

AcceptPolicy

public CookieJarAcceptPolicy AcceptPolicy { get; set; }

Property Value

CookieJarAcceptPolicy

ReadOnly

public bool ReadOnly { get; }

Property Value

bool

Methods

public void AddCookie(Cookie cookie)

Parameters

cookie Cookie
public void AddCookieFull(Cookie cookie, Uri? uri, Uri? firstParty)

Parameters

cookie Cookie
uri Uri
firstParty Uri
public void AddCookieWithFirstParty(Uri firstParty, Cookie cookie)

Parameters

firstParty Uri
cookie Cookie

AllCookies()

public SList AllCookies()

Returns

SList
public void DeleteCookie(Cookie cookie)

Parameters

cookie Cookie

GetAcceptPolicy()

public CookieJarAcceptPolicy GetAcceptPolicy()

Returns

CookieJarAcceptPolicy

GetCookieList(Uri, bool)

public SList GetCookieList(Uri uri, bool forHttp)

Parameters

uri Uri
forHttp bool

Returns

SList

GetCookieListWithSameSiteInfo(Uri, Uri?, Uri?, bool, bool, bool)

public SList GetCookieListWithSameSiteInfo(Uri uri, Uri? topLevel, Uri? siteForCookies, bool forHttp, bool isSafeMethod, bool isTopLevelNavigation)

Parameters

uri Uri
topLevel Uri
siteForCookies Uri
forHttp bool
isSafeMethod bool
isTopLevelNavigation bool

Returns

SList

GetCookies(Uri, bool)

public string? GetCookies(Uri uri, bool forHttp)

Parameters

uri Uri
forHttp bool

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

IsPersistent()

public bool IsPersistent()

Returns

bool

New()

public static CookieJar New()

Returns

CookieJar

SetAcceptPolicy(CookieJarAcceptPolicy)

public void SetAcceptPolicy(CookieJarAcceptPolicy policy)

Parameters

policy CookieJarAcceptPolicy

SetCookie(Uri, string)

public void SetCookie(Uri uri, string cookie)

Parameters

uri Uri
cookie string

SetCookieWithFirstParty(Uri, Uri, string)

public void SetCookieWithFirstParty(Uri uri, Uri firstParty, string cookie)

Parameters

uri Uri
firstParty Uri
cookie string

Events

OnChanged

public event SignalHandler<CookieJar, CookieJar.ChangedSignalArgs> OnChanged

Event Type

SignalHandler<CookieJar, CookieJar.ChangedSignalArgs>