Skip to content

HttpService

Inherits Instance

Http is a service used for HTTP communications and requests.

Static Class

This object is a static class. It can be accessed by using its name as a keyword.

Additionally, it cannot be created in the creator menu or with Instance.New().

Not newable

This object cannot be created by scripts using Instance.New().

Methods

RequestAsync → HttpResponseData

Parameters: data [ HttpRequestData ]

Send a request using the HttpRequestData

GetAsync → string

Parameters

url [ string ]

headers [ table? ]

Sends a GET request to the specified URL.

PostAsync → string

Parameters

url [ string ]

body [ string ]

headers [ table? ]

Sends a POST request to the specified URL.

PutAsync → string

Parameters

url [ string ]

body [ string ]

headers [ table? ]

Sends a PUT request to the specified URL.

DeleteAsync → string

Parameters

url [ string ]

body [ string ]

headers [ table? ]

Sends a DELETE request to the specified url.

PatchAsync → string

Parameters

url [ string ]

body [ string ]

headers [ table? ]

Sends a PATCH request to the specified url.