| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Dormouse.Uri
Synopsis
- data UriReference
- data Authority = Authority {}
- newtype Fragment = Fragment {
- unFragment :: Text
- newtype Host = Host {}
- newtype Path (ref :: UriReference) = Path {
- unPath :: [PathSegment]
- newtype PathSegment = PathSegment {}
- newtype Query = Query {}
- newtype Scheme = Scheme {}
- newtype Username = Username {
- unUsername :: Text
- newtype Password = Password {
- unPassword :: Text
- data UserInfo = UserInfo {}
- data Uri
- data AbsUri = AbsUri {}
- data RelUri = RelUri {}
- parseUri :: MonadThrow m => ByteString -> m Uri
Documentation
data UriReference Source #
The Authority component of a URI
Constructors
| Authority | |
Fields | |
The Fragment component of a URI
Constructors
| Fragment | |
Fields
| |
The Host subcomponent of a URI Authority
newtype Path (ref :: UriReference) Source #
The Path component of a URI, including a series of individual Path Segments
Constructors
| Path | |
Fields
| |
newtype PathSegment Source #
An individial Path segment of a URI
Constructors
| PathSegment | |
Fields | |
Instances
| Eq PathSegment Source # | |
Defined in Dormouse.Uri.Types | |
| Show PathSegment Source # | |
Defined in Dormouse.Uri.Types Methods showsPrec :: Int -> PathSegment -> ShowS # show :: PathSegment -> String # showList :: [PathSegment] -> ShowS # | |
| IsString PathSegment Source # | |
Defined in Dormouse.Uri.Types Methods fromString :: String -> PathSegment # | |
| Lift PathSegment Source # | |
Defined in Dormouse.Uri.Types | |
The Query component of a URI
The Username subcomponent of a URI UserInfo
Constructors
| Username | |
Fields
| |
The Password subcomponent of a URI UserInfo
Constructors
| Password | |
Fields
| |
The UserInfo subcomponent of a URI Authority
Constructors
| UserInfo | |
Fields | |
A Uniform Resource Identifier (URI) is a compact sequence of characters that identifies an abstract or physical resource. It is defined according to RFC 3986 (https://tools.ietf.org/html/rfc3986). URIs can be absolute (i.e. defined against a specific scheme) or relative.
Constructors
| AbsoluteUri AbsUri | |
| RelativeUri RelUri |
The data associated with an Absolute URI
Constructors
| AbsUri | |
The data associated with a Relative URI
Constructors
| RelUri | |
parseUri :: MonadThrow m => ByteString -> m Uri Source #
Parse an ascii ByteString as an absolute uri, throwing a UriException in m if this fails