ServerSentEvent

zio.http.ServerSentEvent
See theServerSentEvent companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply[T](data: T, eventType: Option[String], id: Option[String], retry: Option[Int])(implicit di: DummyImplicit): ServerSentEvent[T]

Server-Sent Event (SSE) as defined by https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events

Value parameters

data

data, may span multiple lines

eventType

type, must not contain \n or \r

id

id, must not contain \n or \r

retry

reconnection delay in milliseconds, must be >= 0

Attributes

Implicits

Implicits

implicit def binaryCodec[T](implicit binaryCodec: BinaryCodec[T]): BinaryCodec[ServerSentEvent[T]]
implicit def contentCodec[T](implicit codecT: BinaryCodec[T], schemaT: Schema[T]): HttpContentCodec[ServerSentEvent[T]]
implicit def defaultBinaryCodec[T](implicit schema: Schema[T]): BinaryCodec[ServerSentEvent[T]]
implicit def defaultContentCodec[T](implicit schema: Schema[T]): HttpContentCodec[ServerSentEvent[T]]
implicit def schema[T](implicit schema: Schema[T]): Schema[ServerSentEvent[T]]