MCPcopy
hub / github.com/ionic-team/capacitor / CapacitorCookiesPlugin

Interface CapacitorCookiesPlugin

core/src/core-plugins.ts:36–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34const decode = (str: string): string => str.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
35
36export interface CapacitorCookiesPlugin {
37 getCookies(options?: GetCookieOptions): Promise<HttpCookieMap>;
38 /**
39 * Write a cookie to the device.
40 */
41 setCookie(options: SetCookieOptions): Promise<void>;
42 /**
43 * Delete a cookie from the device.
44 */
45 deleteCookie(options: DeleteCookieOptions): Promise<void>;
46 /**
47 * Clear cookies from the device at a given URL.
48 */
49 clearCookies(options: ClearCookieOptions): Promise<void>;
50 /**
51 * Clear all cookies on the device.
52 */
53 clearAllCookies(): Promise<void>;
54}
55
56interface HttpCookie {
57 /**

Callers 9

clearCookiesMethod · 0.65
initLoggerFunction · 0.65
initLoggerFunction · 0.65
handleProxyRequestMethod · 0.65
setCookieMethod · 0.65
setCookieMethod · 0.65
deleteCookieMethod · 0.65
clearCookiesMethod · 0.65
setCookieMethod · 0.65

Implementers 2

CapacitorCookiesPluginWebcore/src/core-plugins.ts
CapacitorCookiesandroid/capacitor/src/main/java/com/ge

Calls

no outgoing calls

Tested by

no test coverage detected