Module io.inverno.mod.web.server
Package io.inverno.mod.web.server
Interface WebResponseBody.SseEncoder<A>
- Type Parameters:
A
- the type of data to encode
- All Superinterfaces:
ResponseBody.Sse<A,
WebResponseBody.SseEncoder.Event<A>, WebResponseBody.SseEncoder.EventFactory<A>>
- Enclosing interface:
WebResponseBody
public static interface WebResponseBody.SseEncoder<A>
extends ResponseBody.Sse<A,WebResponseBody.SseEncoder.Event<A>,WebResponseBody.SseEncoder.EventFactory<A>>
A server-sent events data producer used to encode data from a single object or many objects.
Implementors should rely on a MediaTypeConverter
to encode data as a publisher of objects to raw data as a publisher of ByteBuf
.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A server-sent event with data encoding support.static interface
A server-sent events factory with data encoding support. -
Method Summary
Methods inherited from interface io.inverno.mod.http.server.ResponseBody.Sse
from