Merge pull request #1175 from sajith/patch-1
Minor doc patch - sendStatusJSON is since 1.4.18
This commit is contained in:
commit
1bc843c0ce
@ -580,6 +580,8 @@ sendResponseStatus s = handlerError . HCContent s . toTypedContent
|
|||||||
|
|
||||||
-- | Bypass remaining handler code and output the given JSON with the given
|
-- | Bypass remaining handler code and output the given JSON with the given
|
||||||
-- status code.
|
-- status code.
|
||||||
|
--
|
||||||
|
-- Since 1.4.18
|
||||||
sendStatusJSON :: (MonadHandler m, ToJSON c) => H.Status -> c -> m a
|
sendStatusJSON :: (MonadHandler m, ToJSON c) => H.Status -> c -> m a
|
||||||
sendStatusJSON s v = sendResponseStatus s (toJSON v)
|
sendStatusJSON s v = sendResponseStatus s (toJSON v)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user