shorter name
This commit is contained in:
parent
6a60dac366
commit
ae1015b628
@ -94,7 +94,7 @@ module Yesod.Core.Handler
|
|||||||
, sendResponse
|
, sendResponse
|
||||||
, sendResponseStatus
|
, sendResponseStatus
|
||||||
-- ** Type specific response with custom status
|
-- ** Type specific response with custom status
|
||||||
, sendResponseStatusJSON
|
, sendStatusJSON
|
||||||
, sendResponseCreated
|
, sendResponseCreated
|
||||||
, sendWaiResponse
|
, sendWaiResponse
|
||||||
, sendWaiApplication
|
, sendWaiApplication
|
||||||
@ -580,8 +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.
|
||||||
sendResponseStatusJSON :: (MonadHandler m, ToJSON a) => H.Status -> a -> m a
|
sendStatusJSON :: (MonadHandler m, ToJSON a) => H.Status -> a -> m a
|
||||||
sendResponseStatusJSON s v = sendResponseStatus s (toJSON v)
|
sendStatusJSON s v = sendResponseStatus s (toJSON v)
|
||||||
|
|
||||||
-- | Send a 201 "Created" response with the given route as the Location
|
-- | Send a 201 "Created" response with the given route as the Location
|
||||||
-- response header.
|
-- response header.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user