Skip to main content

Alias

  • http_request
  • http.request

Argumentos

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

Retornos

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

Tipos

RequestOptions

Define la tabla options que lee request.

Response

Define la tabla response devuelta por request cuando no hay request error.

Ejemplo

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