Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Servant.API.HttpVersion
Synopsis
- data HttpVersion = HttpVersion {}
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 | |
Instances
Show HttpVersion | |
Defined in Network.HTTP.Types.Version Methods showsPrec :: Int -> HttpVersion -> ShowS show :: HttpVersion -> String showList :: [HttpVersion] -> ShowS | |
Eq HttpVersion | |
Defined in Network.HTTP.Types.Version | |
Ord HttpVersion | |
Defined in Network.HTTP.Types.Version Methods compare :: HttpVersion -> HttpVersion -> Ordering (<) :: HttpVersion -> HttpVersion -> Bool (<=) :: HttpVersion -> HttpVersion -> Bool (>) :: HttpVersion -> HttpVersion -> Bool (>=) :: HttpVersion -> HttpVersion -> Bool max :: HttpVersion -> HttpVersion -> HttpVersion min :: HttpVersion -> HttpVersion -> HttpVersion | |
HasLink sub => HasLink (HttpVersion :> sub :: Type) # | |
Defined in Servant.Links Associated Types type MkLink (HttpVersion :> sub) a # Methods toLink :: (Link -> a) -> Proxy (HttpVersion :> sub) -> Link -> MkLink (HttpVersion :> sub) a # | |
type MkLink (HttpVersion :> sub :: Type) a # | |
Defined in Servant.Links |