trait DefaultBodyReadables extends AnyRef
Defines common BodyReadable for a response backed by org.asynchttpclient.Response.
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- DefaultBodyReadables
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- implicit val readableAsByteArray: BodyReadable[Array[Byte]]
Converts a response body into
Array[Byte].Converts a response body into
Array[Byte].import play.api.libs.ws.DefaultBodyReadables._ def example(response: play.api.libs.ws.StandaloneWSResponse): Array[Byte] = response.body[Array[Byte]]
- implicit val readableAsByteBuffer: BodyReadable[ByteBuffer]
Converts a response body into a read only
ByteBuffer.Converts a response body into a read only
ByteBuffer.import java.nio.ByteBuffer import play.api.libs.ws.DefaultBodyReadables._ def example(response: play.api.libs.ws.StandaloneWSResponse): ByteBuffer = response.body[ByteBuffer]
- implicit val readableAsByteString: BodyReadable[ByteString]
Converts a response body into an
org.apache.pekko.util.ByteString:Converts a response body into an
org.apache.pekko.util.ByteString:import org.apache.pekko.util.ByteString import play.api.libs.ws.DefaultBodyReadables._ def example(response: play.api.libs.ws.StandaloneWSResponse): ByteString = response.body[ByteString]
- implicit val readableAsSource: BodyReadable[Source[ByteString, _]]
Converts a response body into
Source[ByteString, _]. - implicit val readableAsString: BodyReadable[String]
Converts a response body into a
String.Converts a response body into a
String.Note: this is only a best-guess effort and does not handle all content types. See StandaloneWSResponse.body:String* for more information.
import play.api.libs.ws.DefaultBodyReadables._ def example(response: play.api.libs.ws.StandaloneWSResponse): String = response.body[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)