minion-0.1.0.0: A Haskell introspectable web router
Safe HaskellSafe-Inferred
LanguageHaskell2010

Web.Minion.Response

Documentation

class CanRespond o where Source #

Methods

canRespond Source #

Arguments

:: [ByteString]

Accept header values

-> Bool 

Instances

Instances details
CanRespond Chunks Source # 
Instance details

Defined in Web.Minion.Response

CanRespond LazyBytes Source # 
Instance details

Defined in Web.Minion.Response

CanRespond NoBody Source # 
Instance details

Defined in Web.Minion.Response

(CanRespond a, CanRespond (Union as)) => CanRespond (Union (a ': as) :: Type) Source # 
Instance details

Defined in Web.Minion.Response.Union

CanRespond (Union ('[] :: [Type])) Source # 
Instance details

Defined in Web.Minion.Response.Union

CanRespond a => CanRespond (AddHeaders hs a :: Type) Source # 
Instance details

Defined in Web.Minion.Response.Header

AllContentTypes cts => CanRespond (RespBody cts a :: Type) Source # 
Instance details

Defined in Web.Minion.Response.Body

CanRespond a => CanRespond (WithStatus status a :: Type) Source # 
Instance details

Defined in Web.Minion.Response.Status

class ToResponse m r where Source #

Methods

toResponse :: [ByteString] -> r -> m Response Source #

Instances

Instances details
Applicative m => ToResponse m Chunks Source # 
Instance details

Defined in Web.Minion.Response

Applicative m => ToResponse m LazyBytes Source # 
Instance details

Defined in Web.Minion.Response

Monad m => ToResponse m NoBody Source # 
Instance details

Defined in Web.Minion.Response

(ToResponse m a, Monad m, ToResponse m (Union as)) => ToResponse m (Union (a ': as)) Source # 
Instance details

Defined in Web.Minion.Response.Union

Methods

toResponse :: [ByteString] -> Union (a ': as) -> m Response Source #

Monad m => ToResponse m (Union ('[] :: [Type])) Source # 
Instance details

Defined in Web.Minion.Response.Union

Methods

toResponse :: [ByteString] -> Union '[] -> m Response Source #

(ToResponse m a, UnwindHeaders hs, Monad m) => ToResponse m (AddHeaders hs a) Source # 
Instance details

Defined in Web.Minion.Response.Header

Methods

toResponse :: [ByteString] -> AddHeaders hs a -> m Response Source #

(EncodeBody (ct ': cts) a2, Encode ct a2, MonadIO m, ContentType ct) => ToResponse m (RespBody (ct ': cts) a2) Source # 
Instance details

Defined in Web.Minion.Response.Body

Methods

toResponse :: [ByteString] -> RespBody (ct ': cts) a2 -> m Response Source #

MonadIO m => ToResponse m (RespBody ('[] :: [k]) a) Source # 
Instance details

Defined in Web.Minion.Response.Body

Methods

toResponse :: [ByteString] -> RespBody '[] a -> m Response Source #

(ToResponse m a, Monad m, IsStatus status) => ToResponse m (WithStatus status a) Source # 
Instance details

Defined in Web.Minion.Response.Status

Methods

toResponse :: [ByteString] -> WithStatus status a -> m Response Source #

data NoBody Source #

Constructors

NoBody 

Instances

Instances details
CanRespond NoBody Source # 
Instance details

Defined in Web.Minion.Response

Monad m => ToResponse m NoBody Source # 
Instance details

Defined in Web.Minion.Response