Http.response readonly property



The Http.response property returns a table that contains the HTTP response of the last request.

Example

local net = require "net" local client = net.Http("http://download.thinkbroadband.com") await(client:download("/10MB.zip")) if client.response then print("Successfully downloaded "..client.response.file.name) end