跳至主要內容

FetchEvent

BFChainInterfaceFetchEvent小于 1 分钟

继承与Eventopen in new window的对象;

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

属性

  • plugin

    属性值是 dwebServiceWorker对象;

  • request

    属性值是 Requestopen in new window对象;

  • clientId

    属性值是一个 string 或 null;

  • public_url

    属性值是 string, 或者是一个 resolve 兑现一个 string 的Promise对象;

方法

事件

示例

import { FetchEvent } from "@plaoc/plugins";
const event = new FetchEvent("fetch", {
  request: toRequest(ipcRequest),
  clientId: ipcRequest.req_id.toString(),
});

平台兼容性

属性/方法/事件AndroidIOSDesktop-DevDesktop
pluginX
requestX
clientIdX
public_urlX
respondWithX

相关链接

Interface

评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.15.7