Skip to content

Latest commit

 

History

History
82 lines (50 loc) · 1.79 KB

HttpRequestOptions.md

File metadata and controls

82 lines (50 loc) · 1.79 KB
title HttpRequestOptions
titleTemplate title - API / NativeScript
description Provides options for the http requests.
contributors false

Defined in: http/http-interfaces.ts

Provides options for the http requests.

Properties

content?

optional content?: string | FormData | ArrayBuffer | Uint8Array<ArrayBufferLike>;

Defined in: http/http-interfaces.ts

Gets or sets the request body.


dontFollowRedirects?

optional dontFollowRedirects?: boolean;

Defined in: http/http-interfaces.ts

Gets or sets whether to not follow server's redirection responses.


headers?

optional headers?: any;

Defined in: http/http-interfaces.ts

Gets or sets the request headers in JSON format.


method

method: string;

Defined in: http/http-interfaces.ts

Gets or sets the request method.


timeout?

optional timeout?: number;

Defined in: http/http-interfaces.ts

Gets or sets the request timeout in milliseconds.


url

url: string;

Defined in: http/http-interfaces.ts

Gets or sets the request url.