mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-20 07:26:11 +08:00
WebClient folder renamed to net and WebClient renamed to HttpClient
This commit is contained in:
11
net/http_client.d.ts
vendored
Normal file
11
net/http_client.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* The Client interface.
|
||||
*/
|
||||
import image_module = require("Image/image");
|
||||
|
||||
export declare class HttpClient {
|
||||
private static get(url: string, successCallback?: (result: any) => void, errorCallback?: (e: Error) => void)
|
||||
getString(url: string, successCallback?: (result: string) => void, errorCallback?: (e: Error) => void)
|
||||
getJSON(url: string, successCallback?: (result: Object) => void, errorCallback?: (e: Error) => void)
|
||||
getImage(url: string, successCallback?: (result: image_module.Image) => void, errorCallback?: (e: Error) => void)
|
||||
}
|
||||
Reference in New Issue
Block a user