servant-subscriber-0.6.0.1: When REST is not enough ...

Safe HaskellNone
LanguageHaskell2010

Servant.Subscriber.Response

Synopsis

Documentation

data Response #

Any message from the server is a Response.

Subscribed: Resource was successfully subscribed

Modified: Resource was modified (this message is also triggered immediately after a subscription)

HttpRequestFailed: The server replied with some none 2xx status code. Thus your subscription failed or got removed.

ParseError: Your request could not be parsed.

Instances

Generic Response # 

Associated Types

type Rep Response :: * -> * #

Methods

from :: Response -> Rep Response x #

to :: Rep Response x -> Response #

ToJSON Response # 
type Rep Response # 

data Status #

Constructors

Status 

Fields

Instances

Show Status # 
Generic Status # 

Associated Types

type Rep Status :: * -> * #

Methods

from :: Status -> Rep Status x #

to :: Rep Status x -> Status #

ToJSON Status # 
type Rep Status # 
type Rep Status = D1 * (MetaData "Status" "Servant.Subscriber.Response" "servant-subscriber-0.6.0.1-GRaaos783099mQ4nxD4hm" False) (C1 * (MetaCons "Status" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "statusCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "statusMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))