Skip to content

Latest commit

 

History

History
74 lines (44 loc) · 2.65 KB

File metadata and controls

74 lines (44 loc) · 2.65 KB

Latite Scripting Documentation (Exports)


Exports > lib/clipboard > include > HTTP

HTTP

Interface

Source: lib/network.d.ts:25

Methods

get()

get(url: string, data?: GetData): HttpResponse

Sends a basic GET request to a URL.

Source: lib/network.d.ts:31

Parameters

Parameter Type Description
url string The URL to send the request.
data? GetData

Returns

HttpResponse

getAsync()

getAsync( url: string, data: GetData, callback: Function): void

Sends an async GET request to a URL.

Source: lib/network.d.ts:39

Parameters

Parameter Type Description
url string The URL to send the request.
data GetData
callback (resp: HttpResponse) => void

Returns

void

post()

post(url: string, data?: PostData): HttpResponse

Sends a basic POST request to a URL.

Source: lib/network.d.ts:46

Parameters

Parameter Type Description
url string The URL to send a POST request.
data? PostData

Returns

HttpResponse