| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Dormouse.Uri
Synopsis
- data UriReferenceType
- data Authority = Authority {}
- newtype Fragment = Fragment {
- unFragment :: Text
- newtype Host = Host {}
- newtype Path (ref :: UriReferenceType) = Path {
- unPath :: [PathSegment]
- newtype PathSegment = PathSegment {}
- newtype Query = Query {}
- newtype Scheme = Scheme {}
- newtype UserInfo = UserInfo {
- unUserInfo :: Text
- data Uri = Uri {}
- data RelRef = RelRef {}
- data UriReference
- parseUri :: MonadThrow m => ByteString -> m Uri
- parseUriRef :: MonadThrow m => ByteString -> m UriReference
Documentation
data UriReferenceType 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 :: UriReferenceType) 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 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).
Constructors
| Uri | |
The data associated with a URI Relative Reference
Constructors
| RelRef | |
Fields | |
data UriReference Source #
A URI-reference is either a URI or a relative reference. If the URI-reference's prefix does not match the syntax of a scheme followed by its colon separator, then the URI-reference is a relative reference.
Constructors
| AbsoluteUri Uri | |
| RelativeRef RelRef |
Instances
| Eq UriReference Source # | |
Defined in Dormouse.Uri.Types | |
| Show UriReference Source # | |
Defined in Dormouse.Uri.Types Methods showsPrec :: Int -> UriReference -> ShowS # show :: UriReference -> String # showList :: [UriReference] -> ShowS # | |
| Lift UriReference Source # | |
Defined in Dormouse.Uri.Types | |
parseUri :: MonadThrow m => ByteString -> m Uri Source #
Parse an ascii ByteString as a uri, throwing a UriException in m if this fails
parseUriRef :: MonadThrow m => ByteString -> m UriReference Source #
Parse an ascii ByteString as a uri reference, throwing a UriException in m if this fails