org.apache.pekko.http.scaladsl.unmarshalling.sse
Members list
Type members
Classlikes
Flow that converts raw byte string input into ServerSentEvents.
Flow that converts raw byte string input into ServerSentEvents.
This API is made for use in non-pekko-http clients, like Play's WSClient.
Attributes
- Source
- EventStreamParser.scala
- Supertypes
- Self type
-
EventStreamParser.type
Importing EventStreamUnmarshalling.fromEventsStream lets an HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.
Importing EventStreamUnmarshalling.fromEventsStream lets an HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.
The maximum size for parsing server-sent events is 8KiB. The maximum size for parsing lines of a server-sent event is 4KiB. If you need to customize any of these, set the pekko.http.sse.max-event-size and pekko.http.sse.max-line-size properties respectively.
Attributes
- Companion
- trait
- Source
- EventStreamUnmarshalling.scala
- Supertypes
- Self type
Mixing in this trait lets a HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.
Mixing in this trait lets a HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.
The maximum size for parsing server-sent events is 8KiB by default and can be customized by configuring pekko.http.sse.max-event-size. The maximum size for parsing lines of a server-sent event is 4KiB by default and can be customized by configuring pekko.http.sse.max-line-size.
Attributes
- Companion
- object
- Source
- EventStreamUnmarshalling.scala
- Supertypes
- Known subtypes
-
object EventStreamUnmarshalling