yesod 0.6.5 → 0.6.6
raw patch · 2 files changed
+9/−1 lines, 2 files
Files
- Yesod/Handler.hs +8/−0
- yesod.cabal +1/−1
Yesod/Handler.hs view
@@ -50,6 +50,7 @@ , sendFile , sendResponse , sendResponseStatus+ , sendResponseCreated -- * Setting headers , setCookie , deleteCookie@@ -440,6 +441,13 @@ sendResponseStatus :: HasReps c => W.Status -> c -> GHandler s m a sendResponseStatus s = GHandler . lift . throwMEither . HCContent s . chooseRep++-- | Send a 201 "Created" response with the given route as the Location+-- response header.+sendResponseCreated :: Route m -> GHandler s m a+sendResponseCreated url = do+ r <- getUrlRender+ GHandler $ lift $ throwMEither $ HCCreated $ r url -- | Return a 404 not found page. Also denotes no handler available. notFound :: Failure ErrorResponse m => m a
yesod.cabal view
@@ -1,5 +1,5 @@ name: yesod-version: 0.6.5+version: 0.6.6 license: BSD3 license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>