Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- webmention :: MonadThrow m => SourceURI -> TargetURI -> m Webmention
- notify :: Webmention -> IO WebmentionNotification
- verify :: Webmention -> IO WebmentionVerification
- data Webmention
- data WebmentionNotification
- data WebmentionVerification
- data WebmentionError
- type SourceURI = URI
- type TargetURI = URI
- type EndpointURI = URI
- type StatusURI = URI
Documentation
webmention :: MonadThrow m => SourceURI -> TargetURI -> m Webmention Source #
Construct a valid Webmention
from source and target URI
.
Throws a WebmentionError
if source and target are the same, are
relative, or lack an HTTP(S) scheme.
notify :: Webmention -> IO WebmentionNotification Source #
Notify target of Webmention
.
verify :: Webmention -> IO WebmentionVerification Source #
Verify Webmention
source mentions target.
data Webmention Source #
Instances
Eq Webmention Source # | |
Defined in Network.HTTP.Webmention (==) :: Webmention -> Webmention -> Bool # (/=) :: Webmention -> Webmention -> Bool # | |
Show Webmention Source # | |
Defined in Network.HTTP.Webmention showsPrec :: Int -> Webmention -> ShowS # show :: Webmention -> String # showList :: [Webmention] -> ShowS # |
data WebmentionNotification Source #
WebmentionAccepted | |
WebmentionPending StatusURI | |
WebmentionRejected EndpointURI (Response ByteString) | |
WebmentionServerError EndpointURI (Response ByteString) | |
WebmentionNotSupported |
Instances
Eq WebmentionNotification Source # | |
Defined in Network.HTTP.Webmention | |
Show WebmentionNotification Source # | |
Defined in Network.HTTP.Webmention showsPrec :: Int -> WebmentionNotification -> ShowS # show :: WebmentionNotification -> String # showList :: [WebmentionNotification] -> ShowS # |
data WebmentionVerification Source #
Instances
Eq WebmentionVerification Source # | |
Defined in Network.HTTP.Webmention | |
Show WebmentionVerification Source # | |
Defined in Network.HTTP.Webmention showsPrec :: Int -> WebmentionVerification -> ShowS # show :: WebmentionVerification -> String # showList :: [WebmentionVerification] -> ShowS # |
data WebmentionError Source #
Instances
Eq WebmentionError Source # | |
Defined in Network.HTTP.Webmention (==) :: WebmentionError -> WebmentionError -> Bool # (/=) :: WebmentionError -> WebmentionError -> Bool # | |
Show WebmentionError Source # | |
Defined in Network.HTTP.Webmention showsPrec :: Int -> WebmentionError -> ShowS # show :: WebmentionError -> String # showList :: [WebmentionError] -> ShowS # | |
Exception WebmentionError Source # | |
Defined in Network.HTTP.Webmention |
type EndpointURI = URI Source #