bindings/cookie_store library
Cookie Store API
Classes
- CookieChangeEvent
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the
Cookie Store API
is the event type passed toCookieStore.onchange()
when any cookie changes have occurred. A cookie change consists of a cookie and a type (either "changed" or "deleted"). Cookie changes that will cause the to be dispatched are: - CookieChangeEventInit
- CookieInit
- CookieListItem
- CookieStore
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the
Cookie Store API
provides methods for getting and setting cookies asynchronously from either a page or a service worker. The is accessed via attributes in the global scope in a Window or ServiceWorkerGlobalScope context. Therefore there is no constructor. - CookieStoreDeleteOptions
- CookieStoreGetOptions
- CookieStoreManager
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the
Cookie Store
API allows service workers to subscribe to events for cookie changes. By using thesubscribe()
method a particular service worker registration can indicate that it is interested in change events. A has an associated ServiceWorkerRegistration. Each service worker registration has a cookie change subscription list, which is a list of cookie change subscriptions each containing a name and url. The methods in this interface allow the service worker to add and remove subscriptions from this list, and to get a list of all subscriptions. To get a , callServiceWorkerRegistration.cookies
. - ExtendableCookieChangeEvent
-
Secure context: This feature is available only in secure
contexts (HTTPS), in some or all supporting browsers.
The interface of the
Cookie Store API
is the event type passed toServiceWorkerRegistration.oncookiechange()
when any cookie changes have occurred. A cookie change event consists of a cookie and a type (either "changed" or "deleted".) Cookie changes that cause the to be dispatched are: - ExtendableCookieChangeEventInit
Enums
Extensions
- PropsCookieChangeEvent on CookieChangeEvent
- PropsCookieChangeEventInit on CookieChangeEventInit
- PropsCookieInit on CookieInit
- PropsCookieListItem on CookieListItem
- PropsCookieStore on CookieStore
- PropsCookieStoreDeleteOptions on CookieStoreDeleteOptions
- PropsCookieStoreGetOptions on CookieStoreGetOptions
- PropsCookieStoreManager on CookieStoreManager
- PropsExtendableCookieChangeEvent on ExtendableCookieChangeEvent
- PropsExtendableCookieChangeEventInit on ExtendableCookieChangeEventInit