Class: HttpResponseContentProxy¶
A designer-facing interface that provides HTTP response content helper functions
Hierarchy¶
- HttpResponseContentProxy
Implements¶
Summary¶
Constructors¶
Methods¶
Class Methods¶
Inherited Methods¶
Constructors¶
constructor¶
+ new HttpResponseContentProxy(url
: any, responseAndData
: any): HttpResponseContentProxy
Parameters:
Name | Type |
---|---|
url |
any |
responseAndData |
any |
Returns: HttpResponseContentProxy
Methods¶
getData¶
▸ getData(): any
Implementation of IHttpResponseContent
Gets the response body
Returns: any
toFile¶
▸ toFile(destinationFilePath?
: string): File
Implementation of IHttpResponseContent
Gets the response body as file Note: This function is for iOS & Android only
Parameters:
Name | Type |
---|---|
destinationFilePath? |
string |
Returns: File
toImage¶
▸ toImage(): any
Implementation of IHttpResponseContent
Gets the response body as native image object Note: This function is for iOS & Android only
Returns: any
toString¶
▸ toString(): string
Implementation of IHttpResponseContent
Gets the response body as string
Returns: string