CookieJarText

#SoupCookieJarText is a #SoupCookieJar that reads cookies from and writes them to a text file in the Mozilla "cookies.txt" format.

Constructors

this
this(SoupCookieJarText* soupCookieJarText, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(string filename, bool readOnly)

Creates a #SoupCookieJarText.

Members

Functions

getCookieJarTextStruct
SoupCookieJarText* getCookieJarTextStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

soupCookieJarText
SoupCookieJarText* soupCookieJarText;

the main Gtk struct

Inherited Members

From CookieJar

soupCookieJar
SoupCookieJar* soupCookieJar;

the main Gtk struct

getCookieJarStruct
SoupCookieJar* getCookieJarStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

__anonymous
mixin SessionFeatureT!(SoupCookieJar)
Undocumented in source.
getType
GType getType()
addCookie
void addCookie(Cookie cookie)

Adds @cookie to @jar, emitting the 'changed' signal if we are modifying an existing cookie or adding a valid new cookie ('valid' means that the cookie's expire date is not in the past).

addCookieFull
void addCookieFull(Cookie cookie, URI uri, URI firstParty)

Adds @cookie to @jar, emitting the 'changed' signal if we are modifying an existing cookie or adding a valid new cookie ('valid' means that the cookie's expire date is not in the past).

addCookieWithFirstParty
void addCookieWithFirstParty(URI firstParty, Cookie cookie)

Adds @cookie to @jar, emitting the 'changed' signal if we are modifying an existing cookie or adding a valid new cookie ('valid' means that the cookie's expire date is not in the past).

allCookies
ListSG allCookies()

Constructs a #GSList with every cookie inside the @jar. The cookies in the list are a copy of the original, so you have to free them when you are done with them.

deleteCookie
void deleteCookie(Cookie cookie)

Deletes @cookie from @jar, emitting the 'changed' signal.

getAcceptPolicy
SoupCookieJarAcceptPolicy getAcceptPolicy()

Gets @jar's #SoupCookieJarAcceptPolicy

getCookieList
ListSG getCookieList(URI uri, bool forHttp)

Retrieves the list of cookies that would be sent with a request to @uri as a #GSList of #SoupCookie objects.

getCookieListWithSameSiteInfo
ListSG getCookieListWithSameSiteInfo(URI uri, URI topLevel, URI siteForCookies, bool forHttp, bool isSafeMethod, bool isTopLevelNavigation)

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.

getCookies
string getCookies(URI uri, bool forHttp)

Retrieves (in Cookie-header form) the list of cookies that would be sent with a request to @uri.

isPersistent
bool isPersistent()

Gets whether @jar stores cookies persistenly.

save
void save()

This function exists for backward compatibility, but does not do anything any more; cookie jars are saved automatically when they are changed.

setAcceptPolicy
void setAcceptPolicy(SoupCookieJarAcceptPolicy policy)

Sets @policy as the cookie acceptance policy for @jar.

setCookie
void setCookie(URI uri, string cookie)

Adds @cookie to @jar, exactly as though it had appeared in a Set-Cookie header returned from a request to @uri.

setCookieWithFirstParty
void setCookieWithFirstParty(URI uri, URI firstParty, string cookie)

Adds @cookie to @jar, exactly as though it had appeared in a Set-Cookie header returned from a request to @uri. @first_party will be used to reject cookies coming from third party resources in case such a security policy is set in the @jar.

addOnChanged
gulong addOnChanged(void delegate(Cookie, Cookie, CookieJar) dlg, ConnectFlags connectFlags)

Emitted when @jar changes. If a cookie has been added, @new_cookie will contain the newly-added cookie and @old_cookie will be %NULL. If a cookie has been deleted, @old_cookie will contain the to-be-deleted cookie and @new_cookie will be %NULL. If a cookie has been changed, @old_cookie will contain its old value, and @new_cookie its new value.

Meta