Object -
http
:
CookieStore
Represents the cookie store.
Constructor
__init
(PersistentCookieHandler? persistentCookieHandler)
- persistentCookieHandler PersistentCookieHandler? ()
Methods
addCookie
(Cookie cookie, CookieConfig cookieConfig, string url, string requestPath)
returns CookieHandlingError?Parameters
- cookie Cookie
-
Cookie to be added
- cookieConfig CookieConfig
-
Configurations associated with the cookies
- url string
-
Target service URL
- requestPath string
-
Resource path
-
Return Type
(CookieHandlingError?) An
http:CookieHandlingError
if there is any error occurred when adding a cookie or else()
Parameters
- cookiesInResponse Cookie[]
-
Cookies to be added
- cookieConfig CookieConfig
-
Configurations associated with the cookies
- url string
-
Target service URL
- requestPath string
-
Resource path
Parameters
- url string
-
URL of the request URI
- requestPath string
-
Path of the request URI
-
Return Type
(Cookie[]) Array of the matched cookies stored in the cookie store
-
Return Type
(Cookie[]) Array of all the cookie objects
Parameters
- cookieName string
-
Name of the cookie
-
Return Type
(Cookie[]) Array of all the matched cookie objects
Parameters
- domain string
-
Name of the domain
-
Return Type
(Cookie[]) Array of all the matched cookie objects
Parameters
- name string
-
Name of the cookie to be removed
- domain string
-
Domain of the cookie to be removed
- path string
-
Path of the cookie to be removed
-
Return Type
(CookieHandlingError?) An
http:CookieHandlingError
if there is any error occurred during the removal of the cookie or else()
Parameters
- domain string
-
Domain of the cookie to be removed
-
Return Type
(CookieHandlingError?) An
http:CookieHandlingError
if there is any error occurred during the removal of cookies by domain or else()
-
Return Type
(CookieHandlingError?) An
http:CookieHandlingError
if there is any error occurred during the removal of expired cookies or else()
-
Return Type
(CookieHandlingError?) An
http:CookieHandlingError
if there is any error occurred during the removal of all the cookies or else()