8.6 Released with 🥽 visionOS support and more!
Check it out
HttpRequestOptions
interface HttpRequestOptions {
  content: string | FormData | ArrayBuffer;
  dontFollowRedirects: boolean;
  headers: any;
  method: string;
  timeout: number;
  url: string;
}
Provides options for the http requests.

Summary ​

Properties ​

content ​

content?: string | FormData | ArrayBuffer
Gets or sets the request body.

dontFollowRedirects ​

dontFollowRedirects?: boolean
Gets or sets wether to *not* follow server's redirection responses.

headers ​

headers?: any
Gets or sets the request headers in JSON format.

method ​

method: string
Gets or sets the request method.

timeout ​

timeout?: number
Gets or sets the request timeout in milliseconds.

url ​

url: string
Gets or sets the request url.