| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Linnet.ToResponse
Synopsis
- class ToResponse ct a where
- toResponse :: Status -> [Header] -> a -> Response
- class Negotiable cts a where
- data NotAcceptable406
Documentation
class ToResponse ct a where Source #
Type-class to convert a value of type a into Response with Content-Type of ct
Instances
| ToResponse' (ValueT a) ct a => ToResponse ct a Source # | |
Defined in Linnet.ToResponse | |
class Negotiable cts a where Source #
Type-class that enables Content-Type negotiation between client and server baked by instances of ToResponse.
data NotAcceptable406 Source #
Uninhabited type to signal the need of 406 error during Content-Type negotiation