@tavora/sdk / NetworkRequest
Interface: NetworkRequest
Defined in: packages/sdk/src/protocol.ts:189
A web request the host makes for the module (network.fetch). Only to a host the module names in permissions.network and the user granted, only over HTTPS; the host sends no cookies and follows redirects only to granted hosts.
Properties
body?
optionalbody?:string
Defined in: packages/sdk/src/protocol.ts:196
Text only; send binary data as base64 or JSON.
headers?
optionalheaders?:Record<string,string>
Defined in: packages/sdk/src/protocol.ts:194
Cookie, Host, Origin, Referer, Proxy-, Sec- and the transfer headers are set by the host and refused here.
method?
optionalmethod?:"GET"|"HEAD"|"POST"|"PUT"|"PATCH"|"DELETE"
Defined in: packages/sdk/src/protocol.ts:192
Default GET.
responseType?
optionalresponseType?:"text"|"base64"
Defined in: packages/sdk/src/protocol.ts:198
"base64" for pictures and other binary answers. Default "text" (read as UTF-8).
url
url:
string
Defined in: packages/sdk/src/protocol.ts:190