Skip to content

Http Lua lib

htmlcsjs edited this page Apr 3, 2022 · 1 revision

This is an API providing means to perform HTTP requests

Structure

This is contained in the http package in lua. It contains

  • get -> a function to perform get requests. It returns a table with:
  • status_code -> the numerical code for the status of the response.
  • status_msg -> the textual representation of the status.
  • body -> the body of the response.
  • headers -> any headers from the response as a table of header names, and arrays of values.
Clone this wiki locally