FetchEvent

BFChainAugust 11, 2023
  • Interface
  • FetchEvent
Less than 1 minute

Inherits from Eventopen in new window;

import { FetchEvent } from "@plaoc/plugin";

Properties

  • plugin

    The property value is the DwebServiceWorkerPlugin object;

  • request

    The property value is the Request object;

  • clientId

    The property value is a string or null;

  • public_url

    The property value is a string, or a Promise that resolves to a string;

Methods

Events

  • None

Example

import { FetchEvent } from "@plaoc/plugin";

const event = new FetchEvent("fetch", {
  request: toRequest(ipcRequest),
  clientId: ipcRequest.req_id.toString(), 
});

Platform Compatibility

Properties/Methods/EventsAndroidiOSDesktop-DevDesktop
pluginX
requestX
clientIdX
public_urlX
respondWithX

Interface

Comments
  • Latest
  • Oldest
  • Hottest
Powered by Waline v2.13.0