http.url.parse

http.url

parse(url_str) -> parsed, err

Parse a URL into its component parts per RFC 2396

Decomposes a URL string into a table with the following fields (all nil when absent):

Returns nil, "invalid url" for empty or nil input.