Skip to main content

Aliase

  • http_request
  • http.request

Argumente

RequestOptions
erforderlich
Request options table. Url is required; Method, Headers, Cookies, and Body are optional.

Rückgaben

Response | string
On request error, an error string. Otherwise a response table.

Typen

RequestOptions

Definiert die options table, die request liest.

Response

Definiert die response table, die request ohne request-Fehler zurueckgibt.

Beispiel

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