Std.Url
16 public declarations
- addQuery
&Std.Url.Url -> Str -> Str -> Std.Url.UrlThe URL with a query key added, keeping any values it already had.
- decodeComponent
Str -> StrText with its percent escapes read back.
- defaultPort
Str -> Option[Int]The port a scheme uses when none is written.
- effectivePort
&Std.Url.Url -> Option[Int]The port a URL uses, falling back to the one its scheme implies.
- encodeComponent
Str -> StrText with the characters a URL cannot carry replaced by percent escapes.
- parse
Str -> Result[Std.Url.Url, Std.Url.UrlError]A URL read from text, or what stopped the reader.
- parseQuery
Str -> Array[(Str, Str)]A query string read into pairs. A key with no `=` carries empty text.
- queryValue
&Std.Url.Url -> Str -> Option[Str]The first value given for a query key, or `None`.
- queryValues
&Std.Url.Url -> Str -> Array[Str]Every value given for a query key, in order.
- removeQuery
&Std.Url.Url -> Str -> Std.Url.UrlThe URL with every value for a key removed.
- render
&Std.Url.Url -> StrA URL written back as text, with every part encoded again.
- renderQuery
&Array[(Str, Str)] -> StrQuery pairs written back as text.
- segments
&Std.Url.Url -> Array[Str]The path in pieces, with empty pieces dropped.
- Url
The parts of a URL, each already decoded.
- UrlError
What stopped a URL from being read.
- withPath
&Std.Url.Url -> Str -> Std.Url.UrlThe URL with a different path.
