servant-event-stream-0.2.1.0: Servant support for Server-Sent events
Safe HaskellNone
LanguageHaskell2010

Servant.API.EventStream

Synopsis

Documentation

data ServerSentEvents Source #

Instances

Instances details
Generic ServerSentEvents Source # 
Instance details

Defined in Servant.API.EventStream

Associated Types

type Rep ServerSentEvents :: Type -> Type #

HasForeignType lang ftype EventSourceHdr => HasForeign (lang :: k) ftype ServerSentEvents Source #

a helper instance for servant-foreign

Instance details

Defined in Servant.API.EventStream

Associated Types

type Foreign ftype ServerSentEvents #

Methods

foreignFor :: Proxy lang -> Proxy ftype -> Proxy ServerSentEvents -> Req ftype -> Foreign ftype ServerSentEvents #

HasLink ServerSentEvents Source # 
Instance details

Defined in Servant.API.EventStream

Associated Types

type MkLink ServerSentEvents a #

HasServer ServerSentEvents context Source # 
Instance details

Defined in Servant.API.EventStream

Associated Types

type ServerT ServerSentEvents m #

type Rep ServerSentEvents Source # 
Instance details

Defined in Servant.API.EventStream

type Rep ServerSentEvents = D1 ('MetaData "ServerSentEvents" "Servant.API.EventStream" "servant-event-stream-0.2.1.0-inplace" 'True) (C1 ('MetaCons "ServerSentEvents" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (StreamGet NoFraming EventStream EventSourceHdr))))
type Foreign ftype ServerSentEvents Source # 
Instance details

Defined in Servant.API.EventStream

type Foreign ftype ServerSentEvents = Req ftype
type MkLink ServerSentEvents a Source # 
Instance details

Defined in Servant.API.EventStream

type ServerT ServerSentEvents m Source # 
Instance details

Defined in Servant.API.EventStream

data EventStream Source #

A type representation of an event stream. It's responsible for setting proper content-type and buffering headers, as well as for providing parser implementations for the streams. Read more on Servant Streaming Docs

type EventSourceHdr = Headers '[Header "X-Accel-Buffering" Text] EventSource Source #

This is mostly to guide reverse-proxies like nginx