HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulewai-extra-3.1.16Haskell2010

Network.Wai.Middleware.MethodOverridePost

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

  • 1 value
  • Packagewai-extra-3.1.16
  • 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.