HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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.