OptionalasyncReturn a receipt at once and deliver the response as http:response; false blocks until the response is in.
OptionalbodyRequest body: a string is sent as it is, an object or array as its JSON text, and any other value as an empty body.
OptionalheadersCustom request headers. User-Agent overrides the host default on the initial request. A header whose name or value contains a line break is dropped. Custom headers are omitted after a redirect, including User-Agent, so redirected requests use the host default.
OptionalinsecureAccept invalid or self-signed certificates; takes effect only when the host setting allows insecure TLS as well.
Optionalredirectfollow follows up to 10 redirects; error fails with OPERATION_FAILED on a redirect; manual returns the redirect response as it is.
Optionalresponsetext returns the body as text; base64, and its spellings arraybuffer and binary, return it Base64-encoded.
OptionaltimeoutTimeout in milliseconds for resolving, connecting, sending and receiving each; 0 or less keeps the WinHTTP defaults.
Request URL; only http and https are allowed.
Parameters for
http.patch. Send a PATCH request; otherwise the same ashttp.get.