wai-middleware-content-type-0.6.2: Route to different middlewares based on the incoming Accept header.
Network.Wai.Middleware.ContentType.Json
Contents
json :: (ToJSON j, MonadIO m) => j -> FileExtListenerT m () Source #
jsonOnly :: ToJSON j => j -> Status -> ResponseHeaders -> Response Source #