Skip to main content

Aliasy

  • http_request
  • http.request

Argumenty

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

Zwroty

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

Typy

RequestOptions

Definiuje options table odczytywana przez request.

Response

Definiuje response table zwracana przez request, gdy nie ma request error.

Przykład

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