Appearance
Interface: HttpRequest
What ctx.http sends: an https URL on one of the manifest's hosts, with {{secret:NAME}} placeholders anywhere in the URL, the header values or a string body. Redirects are not followed; host, content-length, transfer-encoding, connection, expect and upgrade are the host's to set.
Properties
body?
ts
optional body?: HttpBody;headers?
ts
optional headers?: Record<string, string>;method?
ts
optional method?: HttpMethod;responseAs?
ts
optional responseAs?: "base64" | "text";text (the default) or base64 for a binary answer.
sign?
ts
optional sign?: HttpSign;timeoutMs?
ts
optional timeoutMs?: number;url
ts
url: string;