This example uses vadv/gopher-lua-libs library for GopherLua.
See the output in browser developer console.
Actual code:
local http = require('http')
local client = http.client()
local req = http.request('GET', 'https://httpbin.org/anything')
local res, err = client:do_request(req)
if err then error(err) end
print(res.body)