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

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.

#userPassInfoChar Source

userPassInfoChar :: Parser String Char

The supported user/password characters, excluding percent-encodings.