Skip to main content

Aliases

  • http_request
  • http.request

Argumentos

RequestOptions
obrigatório
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 a options table lida por request.

Response

Define a response table retornada por request quando nao ha request error.

Exemplo

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