object EntityDecoder extends EntityDecoderInstances
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.
- Source
- EntityDecoder.scala
- Alphabetic
- By Inheritance
- EntityDecoder
- EntityDecoderInstances
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[T](implicit ev: EntityDecoder[T]): EntityDecoder[T]
summon an implicit EntityEncoder
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
binFile(file: File): EntityDecoder[File]
- Definition Classes
- EntityDecoderInstances
-
implicit
val
binary: EntityDecoder[ByteVector]
- Definition Classes
- EntityDecoderInstances
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
collectBinary(msg: Message): DecodeResult[ByteVector]
Helper method which simply gathers the body into a single ByteVector
-
def
decodeBy[T](r1: MediaRange, rs: MediaRange*)(f: (Message) ⇒ DecodeResult[T]): EntityDecoder[T]
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 MediaRanges -
def
decodeString(msg: Message)(implicit defaultCharset: Charset = DefaultCharset): Task[String]
Decodes a message to a String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
error[T](t: Throwable): EntityDecoder[T]
Provides a mechanism to fail decoding
Provides a mechanism to fail decoding
- Definition Classes
- EntityDecoderInstances
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
implicit
def
multipart: EntityDecoder[Multipart]
- Definition Classes
- EntityDecoderInstances
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
implicit
def
text(implicit defaultCharset: Charset = DefaultCharset): EntityDecoder[String]
- Definition Classes
- EntityDecoderInstances
-
def
textFile(file: File): EntityDecoder[File]
- Definition Classes
- EntityDecoderInstances
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )