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

Safe HaskellNone
LanguageHaskell2010

Servant.Subscriber.Response

Synopsis

Documentation

data Response Source #

Any message from the server is a Response.

Subscribed: Resource was successfully subscribed

Response: 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 Source # 
Instance details

Defined in Servant.Subscriber.Response

Associated Types

type Rep Response :: Type -> Type #

Methods

from :: Response -> Rep Response x #

to :: Rep Response x -> Response #

ToJSON Response Source # 
Instance details

Defined in Servant.Subscriber.Response

type Rep Response Source # 
Instance details

Defined in Servant.Subscriber.Response

data HttpResponse Source #

Instances
Generic HttpResponse Source # 
Instance details

Defined in Servant.Subscriber.Response

Associated Types

type Rep HttpResponse :: Type -> Type #

ToJSON HttpResponse Source # 
Instance details

Defined in Servant.Subscriber.Response

type Rep HttpResponse Source # 
Instance details

Defined in Servant.Subscriber.Response

type Rep HttpResponse = D1 (MetaData "HttpResponse" "Servant.Subscriber.Response" "servant-subscriber-0.6.0.2-8XxgKdyeJag3QNEofxPbwB" False) (C1 (MetaCons "HttpResponse" PrefixI True) (S1 (MetaSel (Just "httpStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Status) :*: (S1 (MetaSel (Just "httpHeaders") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResponseHeaders) :*: S1 (MetaSel (Just "httpBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResponseBody))))

data Status Source #

Constructors

Status 

Fields

Instances
Show Status Source # 
Instance details

Defined in Servant.Subscriber.Response

Generic Status Source # 
Instance details

Defined in Servant.Subscriber.Response

Associated Types

type Rep Status :: Type -> Type #

Methods

from :: Status -> Rep Status x #

to :: Rep Status x -> Status #

ToJSON Status Source # 
Instance details

Defined in Servant.Subscriber.Response

type Rep Status Source # 
Instance details

Defined in Servant.Subscriber.Response

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