http.url.build

http.url

build(parsed) -> url_str

Rebuild a URL string from its parsed components

Accepts a table with the same fields returned by parse() and reassembles them into a URL string. Fields that are nil are omitted. When both host and authority are present, host (plus port, user, password) takes precedence for rebuilding the authority portion. IPv6 hosts are automatically wrapped in brackets.