Module

URI.Extra.UserPassInfo

#UserPassInfo

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

parse :: UserInfo -> Either URIPartParseError UserPassInfo

A parser for user:password formatted user-info.

#print

print :: UserPassInfo -> UserInfo

A printer for user:password formatted user-info.

#userPassInfoChar

userPassInfoChar :: Parser String Char

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

Modules