GObject.Object
Soup.CookieJar
Import line: | Soup = imports.gi.Soup; |
GIR File: | Soup-2.4.gir |
C documentation: | SoupCookieJar |
Class : | CookieJar |
Implements: | Soup.SessionFeature |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
accept_policy : Soup.CookieJarAcceptPolicy
|
Soup.CookieJar | |
parent : GObject.Object
read only
|
Soup.CookieJar | |
read_only : Boolean
|
Soup.CookieJar |
Method / Constructor | Defined By | |
---|---|---|
new Soup.CookieJar
(Object properties)
Create a new Soup.CookieJar
Create a new Soup.CookieJar
|
||
add_cookie
(Cookie cookie)
:
none
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).
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).
|
Soup.CookieJar | |
all_cookies
()
:
Array
Constructs a GSList with every cookie inside the jar.
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.
|
Soup.CookieJar | |
attach
(Session session)
:
none
|
Soup.SessionFeature | |
delete_cookie
(Cookie cookie)
:
none
Deletes cookie from jar, emitting the 'changed' signal.
Deletes cookie from jar, emitting the 'changed' signal.
|
Soup.CookieJar | |
detach
(Session session)
:
none
|
Soup.SessionFeature | |
get_accept_policy
()
:
Soup.CookieJarAcceptPolicy
|
Soup.CookieJar | |
to an HTTP operation Retrieves (in Cookie-header form) the list of cookies that would be sent with a request to uri.
to an HTTP operation Retrieves (in Cookie-header form) the list of cookies that would be sent with a request to uri. If for_http is TRUE, the return value will include cookies marked "HttpOnly" (that is, cookies that the server wishes to keep hidden from client-side scripting operations such as the JavaScript document.cookies property). Since SoupCookieJar sets the Cookie header itself when making the actual HTTP request, you should almost certainly be setting for_http to FALSE if you are calling this. cookies for uri.
|
Soup.CookieJar | |
save
()
:
none
|
Soup.CookieJar | |
set_accept_policy
(CookieJarAcceptPolicy policy)
:
none
Sets policy as the cookie acceptance policy for jar.
Sets policy as the cookie acceptance policy for jar.
|
Soup.CookieJar | |
Adds cookie to jar, exactly as though it had appeared in a Set-Cookie header returned from a request to uri.
Adds cookie to jar, exactly as though it had appeared in a Set-Cookie header returned from a request to uri. Keep in mind that if the SoupCookieJarAcceptPolicy SOUP_COOKIE_JAR_ACCEPT_NO_THIRD_PARTY is set you'll need to use soup_cookie_jar_set_cookie_with_first_party(), otherwise the jar will have no way of knowing if the cookie is being set by a third party or not.
|
Soup.CookieJar | |
Adds cookie to jar, exactly as though it had appeared in a Set-Cookie header returned from a request to uri.
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.
|
Soup.CookieJar |
Event | Defined By | |
---|---|---|
|
Soup.CookieJar |