Skip to content

Type Alias: BodyInit ​

ts
type BodyInit = 
  | string
  | ArrayBuffer
  | ArrayBufferView
  | Blob
  | FormData
  | URLSearchParams
| ReadableStream<Uint8Array>;

Defined in: types/desktop-engine.d.ts:3960

Strings are sent as UTF-8 (Content-Type text/plain;charset=UTF-8 unless set); Blob, FormData (multipart/form-data) and URLSearchParams set their Content-Type too. A ReadableStream is read to the end before the request is sent.

The SDK is released under the Apache License 2.0