akka.http.scaladsl.unmarshalling.sse
EventStreamUnmarshalling
Companion trait EventStreamUnmarshalling
object EventStreamUnmarshalling extends EventStreamUnmarshalling
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 akka.http.sse.max-event-size
and
akka.http.sse.max-line-size
properties respectively.
- Annotations
- @ApiMayChange()
- Source
- EventStreamUnmarshalling.scala
- Alphabetic
- By Inheritance
- EventStreamUnmarshalling
- EventStreamUnmarshalling
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def fromEventsStream(settings: ServerSentEventSettings): FromEntityUnmarshaller[Source[ServerSentEvent, NotUsed]]
Lets an
HttpEntity
with atext/event-stream
media type be unmarshalled to a source ofServerSentEvent
s.Lets an
HttpEntity
with atext/event-stream
media type be unmarshalled to a source ofServerSentEvent
s.- settings
overrides the default unmarshalling behavior.
- Definition Classes
- EventStreamUnmarshalling
- implicit final def fromEventsStream(implicit system: ActorSystem): FromEntityUnmarshaller[Source[ServerSentEvent, NotUsed]]
Lets an
HttpEntity
with atext/event-stream
media type be unmarshalled to a source ofServerSentEvent
s.Lets an
HttpEntity
with atext/event-stream
media type be unmarshalled to a source ofServerSentEvent
s.- Definition Classes
- EventStreamUnmarshalling
Deprecated Value Members
- final val fromEventStream: FromEntityUnmarshaller[Source[ServerSentEvent, NotUsed]]
- Definition Classes
- EventStreamUnmarshalling
- Annotations
- @deprecated
- Deprecated
(Since version 10.1.8) Binary compatibility method. Invocations should have an implicit ActorSystem in scope to provide access to configuration