Skip to content

Class: HttpResponseContentProxy

HttpResponseContentProxy provides helper functions for accessing HTTP response content.

Implements

Summary

Constructors

Properties

Class Properties

Currently none in this class.

Inherited Properties

Currently none inherited from the parent class(es).

Accessors

Class Accessors

Currently none in this class.

Inherited Accessors

Currently none inherited from the parent class(es).

Methods

Class Methods

Inherited Methods

Currently none inherited from the parent class(es).

Constructors

Constructor

+ new HttpResponseContentProxy(url: any, responseAndData: any): HttpResponseContentProxy

Parameters:

Name Type
url any
responseAndData any

Returns: HttpResponseContentProxy

Methods

getData

getData(): any

Gets the response body

Implementation of IHttpResponseContent.getData

Returns: any


toFile

toFile(destinationFilePath?: string): File

Gets the response body directly as a file, without calling getData() first Note: This function is for iOS & Android only

Implementation of IHttpResponseContent.toFile

Parameters:

Name Type
destinationFilePath? string

Returns: File


toImage

toImage(): any

Gets the response body directly as a native image object, without calling getData() first Note: This function is for iOS & Android only

Implementation of IHttpResponseContent.toImage

Returns: any


toString

toString(): string

Gets the response body directly as a string, without calling getData() first

Implementation of IHttpResponseContent.toString

Returns: string