A persistent HTTP connection to a single host and port.
Supports both HTTP and HTTPS. Multiple requests can be sent over the same connection when the server supports keep-alive.
local conn = http.HttpConnection.new("example.com", 443, nil, "https")
conn:request("GET", "/")
local resp = conn:getResponse()
print(resp.status, resp.body)
conn:close()