ServerSentEvent

zio.http.ServerSentEvent
See theServerSentEvent companion class

Attributes

Companion
class
Source
ServerSentEvent.scala
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
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

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

Source
ServerSentEvent.scala

Implicits

Implicits

implicit def binaryCodec[T](implicit binaryCodec: BinaryCodec[T]): BinaryCodec[ServerSentEvent[T]]

Attributes

Source
ServerSentEvent.scala
implicit def contentCodec[T](implicit codecT: BinaryCodec[T], schemaT: Schema[T]): HttpContentCodec[ServerSentEvent[T]]

Attributes

Source
ServerSentEvent.scala
implicit def defaultBinaryCodec[T](implicit schema: Schema[T]): BinaryCodec[ServerSentEvent[T]]

Attributes

Source
ServerSentEvent.scala
implicit def defaultContentCodec[T](implicit schema: Schema[T]): HttpContentCodec[ServerSentEvent[T]]

Attributes

Source
ServerSentEvent.scala
implicit def schema[T](implicit schema: Schema[T]): Schema[ServerSentEvent[T]]

Attributes

Source
ServerSentEvent.scala