Read cookies
Read a dictionary for name-based lookup or a list to preserve duplicate names. On Apple platforms, URL queries use domain selection. Use request headers for cookies eligible for an actual request.
useWebKit defaults to false. It selects the iOS WebKit store when true; tvOS rejects that selection and Android ignores the flag. An empty query returns {} for dictionaries or [] for lists.
getSync
getSync(url: string): CookiesRead the default store synchronously. Results are keyed by name; duplicate names overwrite earlier entries.
get
get(url: string, useWebKit?: boolean): Promise<Cookies>Read the selected store asynchronously. Dictionary results retain the existing name-collision behavior. Android metadata is derived from the URL, not the stored cookie scope.
getListSync
getListSync(url: string): Cookie[]Added in 1.3.0. Read the default store without losing duplicate names. Apple results preserve stored domains and paths. Android URL results contain name/value pairs only.
getList
getList(url: string, useWebKit?: boolean): Promise<Cookie[]>Added in 1.3.0. Read a list from the selected store. Order follows the native result. Do not treat Android list entries as deletion identifiers without the original write scope.
getAll
getAll(useWebKit?: boolean): Promise<Cookies>Read all cookies from the selected Apple store, regardless of domain. Duplicate names collapse into a dictionary. Android rejects with PLATFORM_UNSUPPORTED.
getAllList
getAllList(useWebKit?: boolean): Promise<Cookie[]>Added in 1.3.0. Read every cookie from the selected Apple store while preserving duplicate names and stored scope. Android rejects with PLATFORM_UNSUPPORTED.
