Skip to content

Commit

Permalink
document option to use redirectWith
Browse files Browse the repository at this point in the history
  • Loading branch information
gregwebs committed Jan 18, 2012
1 parent 14f17a1 commit e5ad426
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions yesod-core/Yesod/Handler.hs
Expand Up @@ -444,6 +444,9 @@ safeEh er = YesodApp $ \_ _ _ session -> do
-- HTTP status code 303 for HTTP 1.1 clients and 302 for HTTP 1.0
-- This is the appropriate choice for a get-following-post
-- technique, which should be the usual use case.
--
-- If you want direct control of the final status code, or need a different
-- status code, please use 'redirectWith'.
redirect :: RedirectUrl master url => url -> GHandler sub master a
redirect url = do
req <- waiRequest
Expand Down

0 comments on commit e5ad426

Please sign in to comment.