EntityDecoder is used to attempt to decode an EntityBody
This companion object provides a way to create new EntityDecoder
s along
with some commonly used instances which can be resolved implicitly.
EntityDecoder is used to attempt to decode an EntityBody
This companion object provides a way to create new EntityDecoder
s along
with some commonly used instances which can be resolved implicitly.
- Companion
- class
Value members
Concrete methods
Helper method which simply gathers the body into a single Chunk
Helper method which simply gathers the body into a single Chunk
Create a new EntityDecoder
Create a new EntityDecoder
The new EntityDecoder will attempt to decode messages of type T
only if the Message satisfies the provided MediaRange.
Exceptions thrown by f
are not caught. Care should be taken that
recoverable errors are returned as a DecodeResult#failure, or that
system errors are raised in F
.