Latite Scripting Documentation (Exports)
Exports > lib/clipboard > include > HTTP
Interface
Source: lib/network.d.ts:25
get(url:
string, data?:GetData):HttpResponse
Sends a basic GET request to a URL.
Source: lib/network.d.ts:31
| Parameter | Type | Description |
|---|---|---|
| url | string |
The URL to send the request. |
| data? | GetData |
getAsync( url:
string, data:GetData, callback:Function):void
Sends an async GET request to a URL.
Source: lib/network.d.ts:39
| Parameter | Type | Description |
|---|---|---|
| url | string |
The URL to send the request. |
| data | GetData |
|
| callback | (resp: HttpResponse) => void |
void
post(url:
string, data?:PostData):HttpResponse
Sends a basic POST request to a URL.
Source: lib/network.d.ts:46
| Parameter | Type | Description |
|---|---|---|
| url | string |
The URL to send a POST request. |
| data? | PostData |