Reference/Datatypes/HttpRequestOptions
Datatype · Structs

HttpRequestOptions

struct

Options table passed to HttpService:RequestAsync. Configures the URL, method, headers, and body of the request.

Fields

NameTypeDescription
Bodystring?

Optional request body. Typically used with POST, PUT, and PATCH.

Headers{ [string]: string }?

Optional table of request headers.

Methodstring?

The HTTP method to use. Defaults to "GET". Accepted values: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS.

Urlstring

The URL to send the request to. Must use http:// or https://.