Cookies

external class Cookies : EventEmitter(source)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun addListener(type: EventType, listener: EventListener)
Link copied to clipboard
fun emit(type: EventType, vararg args: Any?): Boolean
Link copied to clipboard
Link copied to clipboard

A promise which resolves when the cookie store has been flushed

Link copied to clipboard

A promise which resolves an array of cookie objects.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun off(type: EventType, listener: EventListener)
Link copied to clipboard
fun on(type: EventType, listener: EventListener)
Link copied to clipboard
fun once(type: EventType, listener: EventListener)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun remove(url: String, name: String): Promise<Void>

A promise which resolves when the cookie has been removed

Link copied to clipboard
Link copied to clipboard
fun removeListener(type: EventType, listener: EventListener)
Link copied to clipboard

A promise which resolves when the cookie has been set

Link copied to clipboard