Mixing in this trait lets a source of ServerSentEvents be marshalled to a a HttpEntity and hence as a
HttpResponse.
Mixing in this trait lets a HttpEntity with a text/event-stream media type be unmarshalled to a source of
ServerSentEvents.
Representation of a server-sent event.
Representation of a server-sent event.
optional data, may be empty or span multiple lines
optional type, must not contain \n or \r
optional id, must not contain \n or \r
optional reconnection delay in milliseconds
Importing EventStreamMarshalling.toEventStream lets a source of ServerSentEvents be marshalled to a
HttpEntity and hence as a HttpResponse.
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-akka-http clients, like Play's WSClient.
Importing EventStreamUnmarshalling.fromEventStream lets a HttpEntity with a text/event-stream media type be
unmarshalled to a source of ServerSentEvents.
Importing EventStreamUnmarshalling.fromEventStream 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. The maximum size for parsing lines of a server-sent event is 4KiB. If you need to customize any of these, use the EventStreamUnmarshalling trait and override the respective methods.
Media types for Server-Sent Events.
Mixing in this trait lets a
HttpEntitywith atext/event-streammedia type be unmarshalled to a source of ServerSentEvents.The maximum size for parsing server-sent events is 8KiB dy default and can be customized by overriding EventStreamUnmarshalling.maxEventSize. The maximum size for parsing lines of a server-sent event is 4KiB dy default and can be customized by overriding EventStreamUnmarshalling.maxLineSize.