Validates if string is a valid host based on RFC-7230.
Javascript port of PHP http_build_query
[ESM] The hyperlink constuctor according to rfc1738, rfc1808, rfc2396, rfc3986 and whatwg. Works with Browser and Node.js
Lightweight URL & URI parser (RFC 1738, RFC 3986); Sergey Kosarevsky (2015).