| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.HTTP.Webmention
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 | |
| Show Webmention Source # | |
Defined in Network.HTTP.Webmention Methods showsPrec :: Int -> Webmention -> ShowS # show :: Webmention -> String # showList :: [Webmention] -> ShowS # | |
data WebmentionNotification Source #
Constructors
| WebmentionAccepted | |
| WebmentionPending StatusURI | |
| WebmentionRejected EndpointURI (Response ByteString) | |
| WebmentionServerError EndpointURI (Response ByteString) | |
| WebmentionNotSupported |
Instances
| Eq WebmentionNotification Source # | |
Defined in Network.HTTP.Webmention Methods (==) :: WebmentionNotification -> WebmentionNotification -> Bool # (/=) :: WebmentionNotification -> WebmentionNotification -> Bool # | |
| Show WebmentionNotification Source # | |
Defined in Network.HTTP.Webmention Methods showsPrec :: Int -> WebmentionNotification -> ShowS # show :: WebmentionNotification -> String # showList :: [WebmentionNotification] -> ShowS # | |
data WebmentionVerification Source #
Instances
| Eq WebmentionVerification Source # | |
Defined in Network.HTTP.Webmention Methods (==) :: WebmentionVerification -> WebmentionVerification -> Bool # (/=) :: WebmentionVerification -> WebmentionVerification -> Bool # | |
| Show WebmentionVerification Source # | |
Defined in Network.HTTP.Webmention Methods showsPrec :: Int -> WebmentionVerification -> ShowS # show :: WebmentionVerification -> String # showList :: [WebmentionVerification] -> ShowS # | |
data WebmentionError Source #
Instances
| Eq WebmentionError Source # | |
Defined in Network.HTTP.Webmention Methods (==) :: WebmentionError -> WebmentionError -> Bool # (/=) :: WebmentionError -> WebmentionError -> Bool # | |
| Show WebmentionError Source # | |
Defined in Network.HTTP.Webmention Methods showsPrec :: Int -> WebmentionError -> ShowS # show :: WebmentionError -> String # showList :: [WebmentionError] -> ShowS # | |
| Exception WebmentionError Source # | |
Defined in Network.HTTP.Webmention Methods toException :: WebmentionError -> SomeException # | |
type EndpointURI = URI Source #