nested-routes-0.3.1: Declarative, compositional Wai responses

Safe HaskellNone
LanguageHaskell2010

Web.Routes.Nested.FileExtListener.Json

Documentation

json :: (ToJSON j, Monad m) => j -> FileExtListenerT Response m () Source

jsonStatus :: (ToJSON j, Monad m) => Status -> j -> FileExtListenerT Response m () Source

jsonp :: (ToJSON j, Monad m) => j -> FileExtListenerT Response m () Source

jsonpStatus :: (ToJSON j, Monad m) => Status -> j -> FileExtListenerT Response m () Source

jsonHeaders :: (ToJSON j, Monad m) => RequestHeaders -> j -> FileExtListenerT Response m () Source

jsonStatusHeaders :: (ToJSON j, Monad m) => Status -> RequestHeaders -> j -> FileExtListenerT Response m () Source

jsonOnly :: ToJSON j => j -> Response Source

jsonOnlyStatus :: ToJSON j => Status -> j -> Response Source

jsonpOnly :: ToJSON j => j -> Response Source

jsonpOnlyStatus :: ToJSON j => Status -> j -> Response Source

jsonOnlyHeaders :: ToJSON j => RequestHeaders -> j -> Response Source

jsonOnlyStatusHeaders :: ToJSON j => Status -> RequestHeaders -> j -> Response Source