URI.Host.RegName  
- Package
- purescript-uri
- Repository
- slamdata/purescript-uri
#fromString Source
fromString :: NonEmptyString -> RegNameConstructs a reg-name value from a string, percent-encoding any characters
that require it. Note that running this on a string that has already had
percent-encoding applied will double-encode it, for those situations use
unsafeFromString instead.
fromString "foo.com" = unsafeFromString "foo.com"
fromString "foo:bar" = unsafeFromString "foo%3Abar"
fromString "foo%3Abar" = unsafeFromString "foo%253Abar"
#toString Source
toString :: RegName -> NonEmptyStringReturns the string value for a reg-name, percent-decoding any characters that require it.
toString (unsafeFromString "foo.com") = "foo.com"
toString (unsafeFromString "foo%3Abar") = "foo:bar"
#unsafeFromString Source
unsafeFromString :: NonEmptyString -> RegNameConstructs a query value from a string directly - no percent-encoding will be applied. This is useful when using a custom encoding scheme for the query, to prevent double-encoding.
#unsafeToString Source
unsafeToString :: RegName -> NonEmptyStringReturns the string value for the reg-name without percent-decoding. Only
"unsafe" in the sense that values this produces may need further decoding,
the name is more for symmetry with the fromString/unsafeFromString
pairing.
- Modules
- URI
- URI.AbsoluteURI 
- URI.Authority 
- URI.Common 
- URI.Extra. MultiHostPortPair 
- URI.Extra. QueryPairs 
- URI.Extra. UserPassInfo 
- URI.Fragment 
- URI.HierarchicalPart 
- URI.Host 
- URI.Host. Gen 
- URI.Host. IPv4Address 
- URI.Host. IPv6Address 
- URI.Host. RegName 
- URI.HostPortPair 
- URI.HostPortPair. Gen 
- URI.Path 
- URI.Path. Absolute 
- URI.Path. NoScheme 
- URI.Path. Rootless 
- URI.Path. Segment 
- URI.Port 
- URI.Port. Gen 
- URI.Query 
- URI.RelativePart 
- URI.RelativeRef 
- URI.Scheme 
- URI.Scheme. Common 
- URI.URI 
- URI.URIRef 
- URI.UserInfo