Interface NetworkOptions

interface NetworkOptions {
    allowHosts?: string[];
    networkSubscribe?: NetworkSubscribe;
    requestProxy?: ((url) => string | Promise<string>);
    timeout?: number;
}

Hierarchy (view full)

Properties

allowHosts?: string[]

安全域名

networkSubscribe?: NetworkSubscribe

网络消息追踪

requestProxy?: ((url) => string | Promise<string>)

请求代理

Type declaration

    • (url): string | Promise<string>
    • Parameters

      • url: string

      Returns string | Promise<string>

timeout?: number

超时时间