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

Moduleservant-0.20.3.0Haskell2010

Servant.API.HttpVersion

  • 1 type
  • Packageservant-0.20.3.0
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceVersion.hs

| You can directly use the HttpVersion type from Network.HTTP.Types if your request handlers need it to compute a response. This would make the request handlers take an argument of type HttpVersion.

Example:

Example1 expression
type API = HttpVersion :> Get '[JSON] String
datadata HttpVersion
#

HTTP Version.

Note that the Show instance is intended merely for debugging.

Instances8Eq, Data, Ord, Show, Generic, HasLink, …