Skip to content

@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? ​

optional body?: string

Defined in: packages/sdk/src/protocol.ts:196

Text only; send binary data as base64 or JSON.


headers? ​

optional headers?: 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? ​

optional method?: "GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE"

Defined in: packages/sdk/src/protocol.ts:192

Default GET.


responseType? ​

optional responseType?: "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

For Tavora 0.23.9 and @tavora/sdk 0.3.3. Code under the MIT License. The Tavora name and logo are not covered by it.