Skip to main content
Sends an HTTP or HTTPS request and yields until it completes. options must include Url. Method defaults to GET and must be GET, POST, PUT, PATCH, or DELETE. Headers, Cookies, and Body are optional. Request errors return an error string; completed requests return a response table.

Sintaks

Alias

  • http_request
  • http.request

Argumen

Return

Tipe

RequestOptions

Mendefinisikan tabel options yang dibaca oleh request.

Response

Mendefinisikan tabel response yang dikembalikan request saat tidak ada request error.

Contoh

Send a GET request and handle either the response table or the request error string.