- Type Parameters:
A- the type of the object to encode
- All Superinterfaces:
OutboundData<A>
- All Known Subinterfaces:
WebPart<A>,WebResponseBody.SseEncoder.Event<A>
An outbound data producer used to encode payload data from a single object or many objects.
Implementors should rely on a MediaTypeConverter to encode payload data as a publisher of objects to a raw payload as a publisher of ByteBuf.
- Since:
- 1.12
- 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- the list of objects to encode
-
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- the object 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
-