Safe Haskell | None |
---|---|
Language | Haskell2010 |
Servant.Server.Internal.ResponseRender
Documentation
class Typeable a => IsWaiBody a where Source #
Methods
responseToWai :: InternalResponse a -> Response Source #
Instances
IsWaiBody ByteString Source # | |
Defined in Servant.Server.Internal.ResponseRender Methods responseToWai :: InternalResponse ByteString -> Response Source # | |
IsWaiBody () Source # | |
Defined in Servant.Server.Internal.ResponseRender Methods responseToWai :: InternalResponse () -> Response Source # | |
IsWaiBody (SourceIO ByteString) Source # | |
Defined in Servant.Server.Internal.ResponseRender Methods responseToWai :: InternalResponse (SourceIO ByteString) -> Response Source # |
data SomeResponse Source #
Constructors
IsWaiBody a => SomeResponse (InternalResponse a) |
class ResponseListRender (cs :: k) (as :: [Type]) where Source #
Methods
responseListRender :: AcceptHeader -> Union (ResponseTypes as) -> Maybe SomeResponse Source #
Instances
ResponseListRender (cs :: k) ('[] :: [Type]) Source # | |
Defined in Servant.Server.Internal.ResponseRender Methods responseListRender :: AcceptHeader -> Union (ResponseTypes ('[] :: [Type])) -> Maybe SomeResponse Source # | |
(ResponseRender cs a, ResponseListRender cs as, KnownStatus (ResponseStatus a)) => ResponseListRender (cs :: k) (a ': as) Source # | |
Defined in Servant.Server.Internal.ResponseRender Methods responseListRender :: AcceptHeader -> Union (ResponseTypes (a ': as)) -> Maybe SomeResponse Source # |
class IsWaiBody (ResponseBody a) => ResponseRender (cs :: k) a where Source #
Methods
responseRender :: AcceptHeader -> ResponseType a -> Maybe (InternalResponse (ResponseBody a)) Source #
Instances
addContentType :: forall {k} (ct :: k) a. Accept ct => InternalResponse a -> InternalResponse a Source #
addContentType' :: MediaType -> InternalResponse a -> InternalResponse a Source #