On this pageFunctions
Url
Parses a URL string into a Url, returning Option.None if invalid.
(str: string): Option<{
hash: Option<string>
host: string
pathname: string
port: Option<string>
protocol: string
search: Option<string>
}>Serializes a Url back to a string.
(url: {
hash: Option<string>
host: string
pathname: string
port: Option<string>
protocol: string
search: Option<string>
}): stringSchema representing a parsed URL with protocol, host, port, pathname, search, and hash fields.
const Url: Struct<{
hash: OptionFromSelf<typeof Stringgt;
host: typeof String$
pathname: typeof String$
port: OptionFromSelf<typeof Stringgt;
protocol: typeof String$
search: OptionFromSelf<typeof Stringgt;
}>