Http.hostname readonly property
The Http.hostname property gets the current hostname string used for connection to the HTTP server or nil if connection have been closed.
Example
local net = require "net"
local httpclient = net.Http("https://www.luart.org")
-- outputs "www.luart.org"
print("http hostname = "..httpclient.hostname)