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.