Skip to main content

エイリアス

  • http_request
  • http.request

引数

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

戻り値

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

型

RequestOptions

request が読み取る options table を定義します。

Response

request error がない場合に request が返す response table を定義します。

例

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