Event

com.alecdorrington.laminarcomponents.Streaming.Event
enum Event

An event of a streamed response.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case Done extends Event

The response has ended, however it ended. Always the last event.

The response has ended, however it ended. Always the last event.

Attributes

final case class Failed(reason: String, refused: Boolean)

The request was refused or the connection failed. Lines already read stand.

The request was refused or the connection failed. Lines already read stand.

Value parameters

reason

The refusal's body, or the failure's message.

refused

Whether the server refused the request, rather than the connection failing.

Attributes

final case class Line(text: String)

One non-blank line of the response, trimmed.

One non-blank line of the response, trimmed.

Value parameters

text

The line.

Attributes