Object -
http
:
CsvPersistentCookieHandler
Represents a default persistent cookie handler, which stores persistent cookies in a CSV file.
Constructor
__init
(string fileName)
- fileName string
Methods
Adds a persistent cookie to the cookie store.
Parameters
- cookie Cookie
-
Cookie to be added
-
Return Type
(CookieHandlingError?) An error will be returned if there is any error occurred during the storing process of the cookie or else nil is returned
Gets all the persistent cookies.
-
Return Type
(Cookie[] | CookieHandlingError) Array of persistent cookies stored in the cookie store or else an error is returned if one occurred during the retrieval of the cookies
Removes a specific persistent cookie.
Parameters
- name string
-
Name of the persistent cookie to be removed
- domain string
-
Domain of the persistent cookie to be removed
- path string
-
Path of the persistent cookie to be removed
-
Return Type
(CookieHandlingError?) An error will be returned if there is any error occurred during the removal of the cookie or else nil is returned
Removes all persistent cookies.
-
Return Type
(CookieHandlingError?) An error will be returned if there is any error occurred during the removal of all the cookies or else nil is returned