Module
URI.Extra.UserPassInfo
- Package
- purescript-uri
- Repository
- purescript-contrib/purescript-uri
#UserPassInfo Source
newtype UserPassInfo
user:password
formatted user-info components for URI authorities.
This format is considered deprecated according to RFC3986 but is still very common, so this is provided for cases where it is necessary.
The username part is required, so a value like :hello
will fail to parse
for this type.
The :
characer will be percent-encoded in all locations other than the
user:password
separator, although the parser will accept passwords
containing un-encoded :
characters.
Constructors
UserPassInfo { password :: Maybe NonEmptyString, user :: NonEmptyString }
Instances
#parse Source
parse :: UserInfo -> Either URIPartParseError UserPassInfo
A parser for user:password
formatted user-info.
#print Source
print :: UserPassInfo -> UserInfo
A printer for user:password
formatted user-info.
- 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