servant-subscriber-0.6.0.2: When REST is not enough ...

Safe HaskellNone
LanguageHaskell2010

Servant.Subscriber.Client

Synopsis

Documentation

data Client api Source #

Constructors

Client 

run :: (MonadLogger m, MonadBaseControl IO m, MonadIO m, Backend backend) => backend -> Client api -> m () Source #

removeRequest :: Client api -> HttpRequest -> STM () Source #

Remove a Request, also unsubscribes from subscriber and deletes our monitor if it was the last Request for the given path.

unsubscribeMonitor :: Subscriber api -> StatusMonitor -> STM () Source #

Does not remove the monitor - use removeRequest if you want this!

handleRequests :: Backend backend => backend -> Client api -> IO () Source #

runMonitor :: Backend backend => backend -> Client api -> IO () Source #

handleUpdates :: Backend backend => backend -> Client api -> (HttpRequest, ResourceStatus) -> IO () Source #

handleModified :: Backend backend => backend -> Client api -> HttpRequest -> IO () Source #

getServerResponse :: Backend backend => backend -> HttpRequest -> (Response -> IO ()) -> IO () Source #