Function createPacResolver

  • Returns an asynchronous FindProxyForURL() function from the given JS string (from a PAC file).

    Parameters

    • qjs: QuickJSWASMModule
    • _str: string | Buffer
    • _opts: CompileOptions = {}

    Returns ((url, _host?) => Promise<string>)

      • (url, _host?): Promise<string>
      • Parameters

        • url: string | URL
        • Optional _host: string

        Returns Promise<string>

Generated using TypeDoc