Import line: | Soup = imports.gi.Soup; |
GIR File: | Soup-2.4.gir |
C documentation: | SoupCookie |
Struct : | Cookie |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
domain : String
|
Soup.Cookie | |
expires : Soup.Date
|
Soup.Cookie | |
http_only : Boolean
|
Soup.Cookie | |
name : String
|
Soup.Cookie | |
path : String
|
Soup.Cookie | |
secure : Boolean
|
Soup.Cookie | |
value : String
|
Soup.Cookie |
Method / Constructor | Defined By | |
---|---|---|
new Soup.Cookie
()
Create a new Soup.Cookie
Create a new Soup.Cookie
|
||
Soup.Cookie | ||
copy
()
:
Soup.Cookie
Copies cookie.
Copies cookie.
|
Soup.Cookie | |
Soup.Cookie | ||
|
Soup.Cookie | |
free
()
:
none
Frees cookie
Frees cookie
|
Soup.Cookie | |
get_domain
()
:
String
Gets cookie's domain
Gets cookie's domain
|
Soup.Cookie | |
get_expires
()
:
Soup.Date
Gets cookie's expiration time by cookie and should not be modified or freed.
Gets cookie's expiration time by cookie and should not be modified or freed.
|
Soup.Cookie | |
get_http_only
()
:
Boolean
Gets cookie's HttpOnly attribute
Gets cookie's HttpOnly attribute
|
Soup.Cookie | |
get_name
()
:
String
Gets cookie's name
Gets cookie's name
|
Soup.Cookie | |
get_path
()
:
String
Gets cookie's path
Gets cookie's path
|
Soup.Cookie | |
get_secure
()
:
Boolean
Gets cookie's secure attribute
Gets cookie's secure attribute
|
Soup.Cookie | |
get_value
()
:
String
Gets cookie's value
Gets cookie's value
|
Soup.Cookie | |
set_domain
(String domain)
:
none
Sets cookie's domain to domain
Sets cookie's domain to domain
|
Soup.Cookie | |
set_expires
(Date expires)
:
none
Sets cookie's expiration time to expires.
Sets cookie's expiration time to expires. If expires is NULL, client's session. (This sets the same property as soup_cookie_set_max_age().)
|
Soup.Cookie | |
set_http_only
(Boolean http_only)
:
none
Sets cookie's HttpOnly attribute to http_only.
Sets cookie's HttpOnly attribute to http_only. If TRUE, cookie will be marked as "http only", meaning it should not be exposed to web page scripts or other untrusted code.
|
Soup.Cookie | |
set_max_age
(Number max_age)
:
none
Sets cookie's max age to max_age.
Sets cookie's max age to max_age. If max_age is -1, the cookie is a session cookie, and will expire at the end of the client's session. Otherwise, it is the number of seconds until the cookie expires. You can use the constants SOUP_COOKIE_MAX_AGE_ONE_HOUR, SOUP_COOKIE_MAX_AGE_ONE_DAY, SOUP_COOKIE_MAX_AGE_ONE_WEEK and SOUP_COOKIE_MAX_AGE_ONE_YEAR (or multiples thereof) to calculate this value. (A value of 0 indicates that the cookie should be considered already-expired.) (This sets the same property as soup_cookie_set_expires().)
|
Soup.Cookie | |
set_name
(String name)
:
none
Sets cookie's name to name
Sets cookie's name to name
|
Soup.Cookie | |
set_path
(String path)
:
none
Sets cookie's path to path
Sets cookie's path to path
|
Soup.Cookie | |
set_secure
(Boolean secure)
:
none
Sets cookie's secure attribute to secure.
Sets cookie's secure attribute to secure. If TRUE, cookie will only be transmitted from the client to the server over secure (https) connections.
|
Soup.Cookie | |
set_value
(String value)
:
none
Sets cookie's value to value
Sets cookie's value to value
|
Soup.Cookie | |
to_cookie_header
()
:
String
Serializes cookie in the format used by the Cookie header (ie, for returning a cookie from a SoupSession to a server).
Serializes cookie in the format used by the Cookie header (ie, for returning a cookie from a SoupSession to a server).
|
Soup.Cookie | |
to_set_cookie_header
()
:
String
Serializes cookie in the format used by the Set-Cookie header (ie, for sending a cookie from a SoupServer to a client).
Serializes cookie in the format used by the Set-Cookie header (ie, for sending a cookie from a SoupServer to a client).
|
Soup.Cookie |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Soup
Method |
Parses header and returns a SoupCookie.
|
Soup.CookieJar
Signal |
|
Soup.CookieJar
Method |
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).
|
Soup.CookieJar
Method |
delete_cookie
(Cookie cookie)
:
none
Deletes cookie from jar, emitting the 'changed' signal.
|