Http.port readonly property



The Http.port property gets the port number 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 443 print("http port = "..httpclient.port)