A type that can be used to decode a Message EntityDecoder is used to attempt to decode a Message returning the entire resulting A. If an error occurs it will result in a failed effect. The default decoders provided here are not streaming, but one could implement a streaming decoder by having the value of A be some kind of streaming construct.
- Type parameters:
- T
result type produced by the decoder
- Companion:
- object
Value members
Abstract methods
The MediaRanges this EntityDecoder knows how to handle
The MediaRanges this EntityDecoder knows how to handle
Concrete methods
Make a new EntityDecoder by mapping the output result
Make a new EntityDecoder by mapping the output result
true if this EntityDecoder knows how to decode the provided MediaType
true if this EntityDecoder knows how to decode the provided MediaType
Combine two EntityDecoder's
Combine two EntityDecoder's
The new EntityDecoder will first attempt to determine if it can perform the decode, and if not, defer to the second EntityDecoder
- Value parameters:
- other
backup EntityDecoder