Skip to main content

Alias

  • http_request
  • http.request

Arguments

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

Retours

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

Types

RequestOptions

Definit la table options lue par request.

Response

Definit la table response renvoyee par request sans request error.

Exemple

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