api.httpCall()
Performs an outbound HTTP request.
Notes:
- External HTTP calls execute in both modes; non-GET requests to Revo hosts require
readOnly: false. - Saving an HTTP response to a Storage target requires
readOnly: falseand fails before transport in restricted mode. - Supports proxy mode, form-data, Storage streaming, and optional current credentials.
- Proxy mode supports JSON/text requests, Storage sources/targets, and json/text/buffer/base64buffer/storage responses. Public stream/SSE, document responses, multipart and currentCredentials remain unsupported through proxy. Check response.status explicitly; upstream HTTP error statuses do not throw, while proxy transport failures do.
- Use
source: { storageEntryId }when streaming an Explorer Storage file into an HTTP request. - Use
target: { name, ... }ortarget: { storageEntryId, replace: true }when streaming an HTTP response into Explorer Storage. sourceandtargetmay be used together to stream a Storage entry through an external conversion API and save its response into Storage.- For multipart requests, put
formDataon the first config argument. Use one empty part withsource, or putstorageEntryIddirectly on each binaryformDatapart. - With proxy: true, the proxy calls the provider through the dedicated egress network and uploads successful response bytes directly to an authorized Storage upload URL. Runtime verifies upload metadata and finalizes; file bytes do not pass through runtime.
- HTTP Storage targets use one managed direct upload and are finalized automatically. Use
storage.createUploadSessionplusstorage.uploadPartfor resumable/chunked session workflows. - Use
requestType: 'storage'for a Storage source andresponseType: 'storage'for a Storage target. These formats are independent. target: { storageUploadSessionId }fills and finalizes an existing active empty direct session, preserving its stored settings.- Only 2xx responses are saved; other statuses return at most 64 KiB of diagnostic text. Legacy Files and nested Storage references are rejected.
- Revo responses expose
revo.sameInstance. Thex-revo-oidheader is returned only whenrevo.sameInstanceis true. Cross-instance or unconfirmed Revo headers are removed from the public response. response.dataisundefinedwhen the response is stored; useresponse.storage.entryafter successful finalization.- For text files, prefer
computeStats: 'sync'on the storage target so line stats are immediately available after finalize. - JSON is the default request and response format. Explicit
requestType: 'json'is valid for every supported HTTP method and, without proxy, may be combined with any supported response type because it does not declare a request body.

