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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulewai-extra-3.1.18Haskell2010

Network.Wai.Middleware.AcceptOverride

  • 1 value

This Middleware provides a way for the request itself to tell the server to override the "Accept" header by looking for the "_accept" query parameter in the query string and inserting or replacing the "Accept" header with that string.

For example:

?_accept=SomeValue

This will result in "Accept: SomeValue" being set in the request as a header, and all other previous "Accept" headers will be removed from the request.