Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- handleMethodOverride :: MonadSnap m => m a -> m a
- handleMethodOverride' :: MonadSnap m => ByteString -> m a -> m a
Documentation
:: MonadSnap m | |
=> m a | Internal handler to call |
-> m a |
Wrap a handler with method override support. This means that if (and only if) the request is a POST, _method param is passed, and it is a parsable method name, it will change the request method to the supplied one. This works around some browser limitations with forms. If you use a different parameter name than _method, use handleMethodOverride'
handleMethodOverride' Source #
:: MonadSnap m | |
=> ByteString | parameter name for method |
-> m a | Internal handler to call |
-> m a |