| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Servant.Subscriber.Backend
Description
A backend for subscriber allows us to query a server and get a response.
| We mimick Wai's interface but with Request and Response types that match our needs.
| Our only backend right now actually is implemented via the WAI Application interface, see: Servant.Subscriber.Backend.Wai.
Documentation
data ResponseReceived Source #
Constructors
| ResponseReceived |
type Application = HttpRequest -> (HttpResponse -> IO ResponseReceived) -> IO ResponseReceived Source #
class Backend a where Source #
Methods
requestResource :: a -> Application Source #
Instances
| Backend Application Source # | |
Defined in Servant.Subscriber.Backend.Wai Methods | |