Skip to content

HttpRequest

The address, method, headers and body of a web request, which you pass to http.request to talk to another website.

Fields

url
string
The http or https address to call, such as https://example.com/scores, up to 2048 characters.
method
("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD")?
The kind of request to make, which is GET when you leave it out.
GETdefaultPOSTPUTPATCHDELETEHEAD
headers
{ [string]: string }?
A table of header names and their values, with at most 32 headers.
body
string?
The text to send, up to 1 MB, which GET and HEAD requests never send.
timeout
number?
How many seconds to wait, which is 10 by default and at most 30.

Tip of the day

From: USBX

HOME Menu

Wii Menu

Wii Remote Settings