consthttp:object
Defined in: sdk/js/src/api.ts:121
HTTPS to hosts in the bot’s network grant, and http:// or https:// to the exact
host:port addresses of its local_network grant. The host makes the request and checks
the URL; the SDK passes it through.
Type Declaration
Section titled “Type Declaration”fetch()
Section titled “fetch()”fetch(
url,init?):HttpResponse
Parameters
Section titled “Parameters”string
string | Uint8Array<ArrayBufferLike>
headers?
Section titled “headers?”Record<string, string>
method?
Section titled “method?”string
timeoutMs?
Section titled “timeoutMs?”number