servant-0.14.1: A family of combinators for defining webservices APIs

Safe HaskellSafe
LanguageHaskell2010

Servant.API.HttpVersion

Synopsis

Documentation

| 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:

>>> type API = HttpVersion :> Get '[JSON] String

data HttpVersion #

HTTP Version.

Note that the Show instance is intended merely for debugging.

Constructors

HttpVersion 

Fields

Instances
Eq HttpVersion 
Instance details

Defined in Network.HTTP.Types.Version

Ord HttpVersion 
Instance details

Defined in Network.HTTP.Types.Version

Show HttpVersion 
Instance details

Defined in Network.HTTP.Types.Version

HasLink sub => HasLink (HttpVersion :> sub :: *) Source # 
Instance details

Defined in Servant.Links

Associated Types

type MkLink (HttpVersion :> sub) a :: * Source #

Methods

toLink :: (Link -> a) -> Proxy (HttpVersion :> sub) -> Link -> MkLink (HttpVersion :> sub) a Source #

type MkLink (HttpVersion :> sub :: *) a Source # 
Instance details

Defined in Servant.Links

type MkLink (HttpVersion :> sub :: *) a = MkLink sub a