Servant.Client.Core.Response

servant-client-core-0.20.2: 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 #

type StreamingResponse = ResponseF (SourceIO ByteString) #

data ResponseF a #

Constructors

Response |
Fields responseStatusCode :: Status responseHeaders :: Seq Header responseHttpVersion :: HttpVersion responseBody :: a

#### Instances

Instances details

Functor ResponseF # |
Instance details Defined in Servant.Client.Core.Response Methods fmap :: (a -> b) -> ResponseF a -> ResponseF b # (<$) :: a -> ResponseF b -> ResponseF a #
Foldable ResponseF # |
Instance details Defined in Servant.Client.Core.Response Methods fold :: Monoid m => ResponseF m -> m # foldMap :: Monoid m => (a -> m) -> ResponseF a -> m # foldMap' :: Monoid m => (a -> m) -> ResponseF a -> m # foldr :: (a -> b -> b) -> b -> ResponseF a -> b # foldr' :: (a -> b -> b) -> b -> ResponseF a -> b # foldl :: (b -> a -> b) -> b -> ResponseF a -> b # foldl' :: (b -> a -> b) -> b -> ResponseF a -> b # foldr1 :: (a -> a -> a) -> ResponseF a -> a # foldl1 :: (a -> a -> a) -> ResponseF a -> a # toList :: ResponseF a -> [a] # null :: ResponseF a -> Bool # length :: ResponseF a -> Int # elem :: Eq a => a -> ResponseF a -> Bool # maximum :: Ord a => ResponseF a -> a # minimum :: Ord a => ResponseF a -> a # sum :: Num a => ResponseF a -> a # product :: Num a => ResponseF a -> a #
Traversable ResponseF # |
Instance details Defined in Servant.Client.Core.Response Methods traverse :: Applicative f => (a -> f b) -> ResponseF a -> f (ResponseF b) # sequenceA :: Applicative f => ResponseF (f a) -> f (ResponseF a) # mapM :: Monad m => (a -> m b) -> ResponseF a -> m (ResponseF b) # sequence :: Monad m => ResponseF (m a) -> m (ResponseF a) #
NFData a => NFData (ResponseF a) # |
Instance details Defined in Servant.Client.Core.Response Methods rnf :: ResponseF a -> () #
Generic (ResponseF a) # |
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.2-JDs2vIfQ3Bk9wqlGzwnuNZ" '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 # to :: Rep (ResponseF a) x -> ResponseF a #
Show a => Show (ResponseF a) # |
Instance details Defined in Servant.Client.Core.Response Methods showsPrec :: Int -> ResponseF a -> ShowS # show :: ResponseF a -> String # showList :: [ResponseF a] -> ShowS #
Eq a => Eq (ResponseF a) # |
Instance details Defined in Servant.Client.Core.Response Methods (==) :: ResponseF a -> ResponseF a -> Bool # (/=) :: ResponseF a -> ResponseF a -> Bool #
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.2-JDs2vIfQ3Bk9wqlGzwnuNZ" '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))))