NetworkAPI
Defined in: namespaces.ts:797
Methods
Section titled “Methods”fetch()
Section titled “fetch()”fetch(
url,options?):Promise<NetworkResponse>
Defined in: namespaces.ts:799
Performs an HTTP request via URLSession.
Parameters
Section titled “Parameters”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<NetworkResponse>
download()
Section titled “download()”download(
url,destPath):Promise<string>
Defined in: namespaces.ts:801
Downloads a URL to a local file path. Returns the destination path.
Parameters
Section titled “Parameters”string
destPath
Section titled “destPath”string
Returns
Section titled “Returns”Promise<string>
executeRequest()
Section titled “executeRequest()”executeRequest(
requestId):Promise<NetworkResponse>
Defined in: namespaces.ts:809
Executes a server-held URLRequest previously built by
vault.buildRequest(...) or oauth.buildAuthenticatedRequest(...).
The requestId is single-use; the host holds the actual request
(including any injected credentials) so JS never sees raw tokens.
Parameters
Section titled “Parameters”requestId
Section titled “requestId”string
Returns
Section titled “Returns”Promise<NetworkResponse>