ConstCancel an in-flight HTTP request or download by its requestId.
Send a DELETE request with an optional body.
Detach the default failure logger; see disableDefaultHttpDownloadLogger.
Download a URL into a file, creating missing folders.
Send a GET request.
Send a HEAD request.
Send a PATCH request with an optional body.
Send a POST request with an optional body.
Send a PUT request with an optional body.
Event-driven GET that awaits the http:response event. The
host may either respond synchronously (async: false) or queue
the request and deliver the result via http:response. A
client-side timeout (default 35 s, or opts.timeout + 5000 ms)
guards against the event never arriving.
Unlike the other verbs it resolves with the success branch only.
A failure the host reports rejects with an Error whose message
is the failure's error; a failure delivered by http:response
also carries that payload as the error's response. The client
timeout rejects as well, after aborting the host request.
http— HTTP requests made by the host process.Requests are not subject to CORS. Only
httpandhttpsURLs are allowed, and local or private network addresses fail withPERMISSION_DENIEDunless the host setting allows them.Body-bearing verbs (
post/put/delete/patch) accept the body as a positional argument; the host sends a non-string body as its JSON text.