Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
The Authority component of a URI
The Fragment component of a URI
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
Path | |
|
newtype PathSegment Source #
An individial Path segment of a URI
Instances
Eq PathSegment Source # | |
Defined in Dormouse.Uri.Types (==) :: PathSegment -> PathSegment -> Bool # (/=) :: PathSegment -> PathSegment -> Bool # | |
Show PathSegment Source # | |
Defined in Dormouse.Uri.Types showsPrec :: Int -> PathSegment -> ShowS # show :: PathSegment -> String # showList :: [PathSegment] -> ShowS # | |
IsString PathSegment Source # | |
Defined in Dormouse.Uri.Types fromString :: String -> PathSegment # | |
Lift PathSegment Source # | |
Defined in Dormouse.Uri.Types lift :: PathSegment -> Q Exp # liftTyped :: PathSegment -> Q (TExp PathSegment) # |
The Query component of a URI
The Username subcomponent of a URI UserInfo
The Password subcomponent of a URI UserInfo
The UserInfo subcomponent of a URI Authority
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.
The data associated with an Absolute URI
The data associated with a Relative URI
parseUri :: MonadThrow m => ByteString -> m Uri Source #
Parse an ascii ByteString
as an absolute uri, throwing a UriException
in m
if this fails