HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleservant-0.20.3.0Haskell2010

Servant.API.HttpVersion

Synopsis
  • 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, …