trait DefaultBodyWritables extends AnyRef
Default BodyWritable for a request body, for use with requests that take a body such as PUT, POST and PATCH.
import scala.concurrent.ExecutionContext import play.api.libs.ws.StandaloneWSClient import play.api.libs.ws.DefaultBodyWritables._ class MyClass(ws: StandaloneWSClient) { def postBody()(implicit ec: ExecutionContext) = { val getBody: String = "..." ws.url("...").post(getBody).map { response => ??? } } }
- Alphabetic
- By Inheritance
- DefaultBodyWritables
- AnyRef
- Any
- Hide All
- Show All
- 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()
- 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])
- implicit val writableOf_File: BodyWritable[File]
Creates an SourceBody with "application/octet-stream" content type from a file.
- implicit val writableOf_InputStream: BodyWritable[Supplier[InputStream]]
Creates an SourceBody with "application/octet-stream" content type from an inputstream.
- implicit val writableOf_Source: BodyWritable[Source[ByteString, _]]
Creates an SourceBody with "application/octet-stream" content type from a file.
- implicit val writeableOf_ByteArray: BodyWritable[Array[Byte]]
Creates an InMemoryBody with "application/octet-stream" content type from an array of bytes.
- implicit val writeableOf_ByteBuffer: BodyWritable[ByteBuffer]
Creates an InMemoryBody with "application/octet-stream" content type from a bytebuffer.
- implicit val writeableOf_Bytes: BodyWritable[ByteString]
Creates an InMemoryBody with "application/octet-stream" content type.
- implicit val writeableOf_String: BodyWritable[String]
Creates an InMemoryBody with "text/plain" content type.
- implicit val writeableOf_StringBuilder: BodyWritable[StringBuilder]
Creates an InMemoryBody with "text/plain" content type from a StringBuilder
- implicit val writeableOf_WsBody: BodyWritable[WSBody]
Creates a BodyWritable with an identity function, with "application/octet-stream" content type.
- implicit val writeableOf_urlEncodedForm: BodyWritable[Map[String, Seq[String]]]
Creates an InMemoryBody with "application/x-www-form-urlencoded" content type.
- implicit val writeableOf_urlEncodedSimpleForm: BodyWritable[Map[String, String]]
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)