servant-client-core-0.20.3.0: Core functionality and class for client function generation for servant APIs

Safe Haskell | None
Language | Haskell2010

Servant.Client.Core.Response

# Documentation

type Response = ResponseF ByteString Source #

type StreamingResponse = ResponseF (SourceIO ByteString) Source #

data ResponseF a Source #

Constructors

Response |

Fields

- responseStatusCode :: Status
- responseHeaders :: Seq Header
- responseHttpVersion :: HttpVersion
- responseBody :: a

#### Instances

Instances details

Functor ResponseF Source # |
Instance details Defined in Servant.Client.Core.Response Methods fmap :: (a -> b) -> ResponseF a -> ResponseF b Source # (<$) :: a -> ResponseF b -> ResponseF a Source #
Foldable ResponseF Source # |

Instance details

Defined in Servant.Client.Core.Response

Methods

fold :: Monoid m => ResponseF m -> m Source #

foldMap :: Monoid m => (a -> m) -> ResponseF a -> m Source #

foldMap' :: Monoid m => (a -> m) -> ResponseF a -> m Source #

foldr :: (a -> b -> b) -> b -> ResponseF a -> b Source #

foldr' :: (a -> b -> b) -> b -> ResponseF a -> b Source #

foldl :: (b -> a -> b) -> b -> ResponseF a -> b Source #

foldl' :: (b -> a -> b) -> b -> ResponseF a -> b Source #

foldr1 :: (a -> a -> a) -> ResponseF a -> a Source #

foldl1 :: (a -> a -> a) -> ResponseF a -> a Source #

toList :: ResponseF a -> [a] Source #

null :: ResponseF a -> Bool Source #

length :: ResponseF a -> Int Source #

elem :: Eq a => a -> ResponseF a -> Bool Source #

maximum :: Ord a => ResponseF a -> a Source #

minimum :: Ord a => ResponseF a -> a Source #

sum :: Num a => ResponseF a -> a Source #

product :: Num a => ResponseF a -> a Source #

Traversable ResponseF Source # |
Instance details Defined in Servant.Client.Core.Response Methods traverse :: Applicative f => (a -> f b) -> ResponseF a -> f (ResponseF b) Source # sequenceA :: Applicative f => ResponseF (f a) -> f (ResponseF a) Source # mapM :: Monad m => (a -> m b) -> ResponseF a -> m (ResponseF b) Source # sequence :: Monad m => ResponseF (m a) -> m (ResponseF a) Source #
NFData a => NFData (ResponseF a) Source # |
Instance details Defined in Servant.Client.Core.Response Methods rnf :: ResponseF a -> () Source #
Generic (ResponseF a) Source # |

Instance details

Defined in Servant.Client.Core.Response

Associated Types

type Rep (ResponseF a) |

Instance details

Defined in Servant.Client.Core.Response

type Rep (ResponseF a) = D1 ('MetaData "ResponseF" "Servant.Client.Core.Response" "servant-client-core-0.20.3.0-8S9QaOrR0pTLkHAcl21Dlv" 'False) (C1 ('MetaCons "Response" 'PrefixI 'True) ((S1 ('MetaSel ('Just "responseStatusCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Status) :*: S1 ('MetaSel ('Just "responseHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Seq Header))) :*: (S1 ('MetaSel ('Just "responseHttpVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HttpVersion) :*: S1 ('MetaSel ('Just "responseBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a))))

Methods

from :: ResponseF a -> Rep (ResponseF a) x Source #

to :: Rep (ResponseF a) x -> ResponseF a Source #

Show a => Show (ResponseF a) Source # |
Instance details Defined in Servant.Client.Core.Response Methods showsPrec :: Int -> ResponseF a -> ShowS Source # show :: ResponseF a -> String Source # showList :: [ResponseF a] -> ShowS Source #
Eq a => Eq (ResponseF a) Source # |
Instance details Defined in Servant.Client.Core.Response Methods (==) :: ResponseF a -> ResponseF a -> Bool Source # (/=) :: ResponseF a -> ResponseF a -> Bool Source #
type Rep (ResponseF a) Source # |

Instance details

Defined in Servant.Client.Core.Response

type Rep (ResponseF a) = D1 ('MetaData "ResponseF" "Servant.Client.Core.Response" "servant-client-core-0.20.3.0-8S9QaOrR0pTLkHAcl21Dlv" 'False) (C1 ('MetaCons "Response" 'PrefixI 'True) ((S1 ('MetaSel ('Just "responseStatusCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Status) :*: S1 ('MetaSel ('Just "responseHeaders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Seq Header))) :*: (S1 ('MetaSel ('Just "responseHttpVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HttpVersion) :*: S1 ('MetaSel ('Just "responseBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a))))

responseToInternalResponse :: ResponseF a -> InternalResponse a Source #