HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulewai-extra-3.1.18Haskell2010

Network.Wai.Middleware.MethodOverridePost

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

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