summon an implicit EntityEncoder
Helper method which simply gathers the body into a single ByteVector
Create a new EntityDecoder
Create a new EntityDecoder
The new EntityEncoder will attempt to decoder messages of type T
Decodes a message to a String
Provides a mechanism to fail decoding
Provides a mechanism to fail decoding
Handles a message body as XML.
Handles a message body as XML.
TODO Not an ideal implementation. Would be much better with an asynchronous XML parser, such as Aalto.
the SAX parser to use to parse the XML
an XML element
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.