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

Moduleservant-0.20.2Haskell2010

Servant.API.HttpVersion

  • 1 type
  • Packageservant-0.20.2
  • 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, …