HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulewai-extra-3.1.18Haskell2010

Network.Wai.Middleware.MethodOverridePost

Changes the request-method via first post-parameter _method.

Synopsis
  • Packagewai-extra-3.1.18
  • Exports1
  • LanguageHaskell2010
  • LicenceMIT
  • SourceMethodOverridePost.hs

Allows overriding of the HTTP request method via the _method post string parameter.

  • Looks for the Content-Type requestHeader.

  • If the header is set to application/x-www-form-urlencoded and the first POST parameter is _method then it changes the request-method to the value of that parameter.

  • This middleware only applies when the initial request method is POST.