| title | HttpContent |
|---|---|
| titleTemplate | title - API / NativeScript |
| description | Encapsulates the content of an HttpResponse. |
| contributors | false |
Defined in: http/http-interfaces.ts
Encapsulates the content of an HttpResponse.
HttpContentHandler.BaseHttpContent
raw: any;Defined in: http/http-request-internal/index.d.ts:7
Gets the response body as raw data.
BaseHttpContent.rawrequestURL: string;Defined in: http/http-request-internal/index.d.ts:11
Gets the request options URL.
BaseHttpContent.requestURLtoArrayBuffer: () => ArrayBuffer;Defined in: http/http-interfaces.ts
Gets the response body as ArrayBuffer
ArrayBuffer
HttpContentHandler.toArrayBuffer
toFile: (destinationFilePath?: string) => File;Defined in: http/http-interfaces.ts
Gets the response body as file.
| Parameter | Type |
|---|---|
destinationFilePath? |
string |
toImage: () => Promise<ImageSource>;Defined in: http/http-interfaces.ts
Gets the response body as ImageSource.
Promise<ImageSource>
toJSON: (encoding?: HttpResponseEncoding) => any;Defined in: http/http-interfaces.ts
Gets the response body as JSON object.
| Parameter | Type |
|---|---|
encoding? |
HttpResponseEncoding |
any
toNativeImage: () => Promise<any>;Defined in: http/http-request-internal/index.d.ts:15
Gets the response native image.
Promise<any>
BaseHttpContent.toNativeImagetoNativeString: (encoding?: HttpResponseEncoding) => any;Defined in: http/http-request-internal/index.d.ts:19
Gets the response as native string.
| Parameter | Type |
|---|---|
encoding? |
HttpResponseEncoding |
any
BaseHttpContent.toNativeStringtoString: (encoding?: HttpResponseEncoding) => string;Defined in: http/http-interfaces.ts
Gets the response body as string.
| Parameter | Type |
|---|---|
encoding? |
HttpResponseEncoding |
string