- Type Parameters:
A
- the type of the object to encode
- All Superinterfaces:
OutboundData<A>
- All Known Subinterfaces:
WebResponseBody.SseEncoder.Event<A>
A response payload producer used to encode the payload from a single object or many objects.
Implementors should rely on a MediaTypeConverter
to encode a payload as a publisher of objects to a raw payload as a publisher of ByteBuf
.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Methods inherited from interface io.inverno.mod.http.base.OutboundData
stream, value
-
Method Details
-
many
Encodes many objects.
- Type Parameters:
T
- the type of the object to encode- Parameters:
value
- a flux emitting the objects to encode
-
one
Encodes one object.
- Type Parameters:
T
- the type of the object to encode- Parameters:
value
- a mono emitting the object to encode
-