Optional
authOptional
fragmenttrue
if the serialized URL string should include the fragment, false
otherwise.
Optional
searchtrue
if the serialized URL string should include the search query, false
otherwise.
Optional
unicodetrue
if Unicode characters appearing in the host component of the URL string should be encoded directly as opposed to
being Punycode encoded.
true
if the serialized URL string should include the username and password,false
otherwise.