- Preparing search index...
- The search index is not available
Documentation
Function createPacResolver
- createPacResolver(qjs, _str, _opts?): ((url, _host?) => Promise<string>)
-
Parameters
-
qjs: QuickJSWASMModule
-
_str: string | Buffer
-
Returns ((url, _host?) => Promise<string>)
-
- (url, _host?): Promise<string>
-
Parameters
-
url: string | URL
-
Optional
_host: string
Returns Promise<string>
Returns an asynchronous
FindProxyForURL()
function from the given JS string (from a PAC file).