HTTP Requests (http)
http
HTTP client: GET, POST, PUT, PATCH, DELETE, HEAD, file download with resume support.
8 functions
Lua 5.3
http.http.delete
http.delete(url [, timeout, headers, data])HTTP DELETE request.
http.http.download
http.download(url, path [, timeout, resume])Download file with optional resume support.
http.http.get
http.get(url [, timeout, headers, noEscape])HTTP GET request. Named args: http.get{url=, timeout=, headers=, params=, download_file=}.
http.http.head
http.head(url [, timeout, headers])HTTP HEAD request.
http.http.patch
http.patch(url [, ...])HTTP PATCH request. Same params as POST.
http.http.post
http.post(url [, timeout, headers, data, noEscape])HTTP POST request. Named args: http.post{url=, json=, data=, upload_file=}.
http.http.put
http.put(url [, timeout, headers, data])HTTP PUT request.
http.http.table_to_form_urlencoded
http.table_to_form_urlencoded(table)Convert table to form-urlencoded string. Array values encoded as bracket notation.