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