Manual of Lua-URI: http

Manual of Lua-URI: http

lua-uri-http - HTTP URI support for Lua URI library

Description

The classes uri.http and uri.https are used for URIs with the http and https schemes respectively. uri.http inherits from the generic uri class, and uri.https inherits from uri.http.

An HTTP or HTTPS URI containing any userinfo part is considered to be invalid. An empty path is normalized to '/', since browsers usually do that, and an empty path cannot be used in an HTTP GET request.

The default port for the http scheme is 80, and for https is 443.

There are no extra methods defined for telnet URIs, only those described in lua-uri(3).

References

As far as I can tell there is no up to date specification of the syntax of HTTP URIs, so this class is based on RFC 1738 section 3.3 and RFC 2616 section 3.2.2.