Interfaces
HttpContent
Encapsulates the content of an HttpResponse.
Defined in: http/http-interfaces.ts
Encapsulates the content of an HttpResponse.
Extends
HttpContentHandler.BaseHttpContent
Properties
raw
raw: any;Defined in: http/http-request-internal/index.d.ts:7
Gets the response body as raw data.
Inherited from
BaseHttpContent.rawrequestURL
requestURL: string;Defined in: http/http-request-internal/index.d.ts:11
Gets the request options URL.
Inherited from
BaseHttpContent.requestURLtoArrayBuffer
toArrayBuffer: () => ArrayBuffer;Defined in: http/http-interfaces.ts
Gets the response body as ArrayBuffer
Returns
ArrayBuffer
Inherited from
HttpContentHandler.toArrayBuffer
toFile
toFile: (destinationFilePath?: string) => File;Defined in: http/http-interfaces.ts
Gets the response body as file.
Parameters
| Parameter | Type |
|---|---|
destinationFilePath? | string |
Returns
Inherited from
toImage
toImage: () => Promise<ImageSource>;Defined in: http/http-interfaces.ts
Gets the response body as ImageSource.
Returns
Promise<ImageSource>
Inherited from
toJSON
toJSON: (encoding?: HttpResponseEncoding) => any;Defined in: http/http-interfaces.ts
Gets the response body as JSON object.
Parameters
| Parameter | Type |
|---|---|
encoding? | HttpResponseEncoding |
Returns
any
Inherited from
toNativeImage
toNativeImage: () => Promise<any>;Defined in: http/http-request-internal/index.d.ts:15
Gets the response native image.
Returns
Promise<any>
Inherited from
BaseHttpContent.toNativeImagetoNativeString
toNativeString: (encoding?: HttpResponseEncoding) => any;Defined in: http/http-request-internal/index.d.ts:19
Gets the response as native string.
Parameters
| Parameter | Type |
|---|---|
encoding? | HttpResponseEncoding |
Returns
any
Inherited from
BaseHttpContent.toNativeStringtoString
toString: (encoding?: HttpResponseEncoding) => string;Defined in: http/http-interfaces.ts
Gets the response body as string.
Parameters
| Parameter | Type |
|---|---|
encoding? | HttpResponseEncoding |
Returns
string
Inherited from
- Previous
- GestureEventDataWithState
- Next
- HttpRequestOptions