Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Module ¶ added in v0.2.2
type Module struct {
// contains filtered or unexported fields
}
func (*Module) DownloadFile ¶ added in v0.4.0
DownloadFile performs a http get request to write stream to a file. @param url string @param headers table @return err string local http = require("http")
http.download_file({
url = "http://ip.jsontest.com/"
headers = {}
}, "/usr/path/file/") return error
func (*Module) Get ¶ added in v0.2.2
Get performs a http get request @param url string @param headers table @return resp table @return err string local http = require("http")
http.get({
url = "https://httpbin.org/json"
}) return (response, error)
response : {
body = "",
status_code = 200,
headers = table
}
Click to show internal directories.
Click to hide internal directories.