Portability | Interacting with hubs implementing the PubSubHub protocol |
---|---|
Stability | provisional |
Maintainer | Sigbjorn Finne <sof@forkIO.com> |
for publish-subscribing to URL change notifications over HTTP. Nice and simple (the protocol, that is :-) )
- getHubLink :: Feed -> Maybe HubLink
- discover :: URLString -> IO (Maybe Feed)
- subscribe :: Maybe AuthUser -> URLString -> Subscribe -> IO ()
- getContent :: URLString -> Maybe Integer -> IO (Maybe Feed)
- notifyPublish :: Maybe AuthUser -> URLString -> URLString -> IO ()
- notifyContent :: Request -> IO (Response, Maybe Feed)
- handleVerify :: Subscribe -> Request -> Response
Documentation
getHubLink :: Feed -> Maybe HubLinkSource
notifyContent :: Request -> IO (Response, Maybe Feed)Source
Handle incoming POST notification of updated topic content. Checks to
see that the MIME type is indeed atom
. Returns the feed along with
status code (and headers) to respond with. A result of Nothing
should
be interpreted as an error and responded to accordingly.