Supported request body types for HTTP requests
Defines all possible data types that can be sent as request body
const jsonBody: Body = { name: 'John', age: 25 };const textBody: Body = 'Hello World';const formBody: Body = new FormData();const fileBody: Body = new File(['content'], 'file.txt'); Copy
const jsonBody: Body = { name: 'John', age: 25 };const textBody: Body = 'Hello World';const formBody: Body = new FormData();const fileBody: Body = new File(['content'], 'file.txt');
Supported request body types for HTTP requests