8.8 released—CSS Media Query support, SF Symbols and much more...
Learn more
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.
Previous
HttpContent