yesod-core 1.6.8.1 → 1.6.9
raw patch · 3 files changed
+12/−1 lines, 3 files
Files
- ChangeLog.md +4/−0
- Yesod/Core/Handler.hs +7/−0
- yesod-core.cabal +1/−1
ChangeLog.md view
@@ -1,5 +1,9 @@ # ChangeLog for yesod-core +## 1.6.9++* Add `sendResponseNoContent` [#1565](https://github.com/yesodweb/yesod/pull/1565)+ ## 1.6.8.1 * Add missing test file to tarball [#1563](https://github.com/yesodweb/yesod/issues/1563)
Yesod/Core/Handler.hs view
@@ -99,6 +99,7 @@ -- ** Type specific response with custom status , sendStatusJSON , sendResponseCreated+ , sendResponseNoContent , sendWaiResponse , sendWaiApplication , sendRawResponse@@ -647,6 +648,12 @@ sendResponseCreated url = do r <- getUrlRender handlerError $ HCCreated $ r url++-- | Bypass remaining handler code and output no content with a 204 status code.+--+-- @since 1.6.9+sendResponseNoContent :: MonadHandler m => m a+sendResponseNoContent = sendWaiResponse $ W.responseBuilder H.status204 [] mempty -- | Send a 'W.Response'. Please note: this function is rarely -- necessary, and will /disregard/ any changes to response headers and session
yesod-core.cabal view
@@ -1,5 +1,5 @@ name: yesod-core-version: 1.6.8.1+version: 1.6.9 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>