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 => ??? }
}
}
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object DefaultBodyWritables
Members list
Implicits
Implicits
Creates an SourceBody with "application/octet-stream" content type from a file.
Creates an SourceBody with "application/octet-stream" content type from a file.
Attributes
Creates an SourceBody with "application/octet-stream" content type from an inputstream.
Creates an SourceBody with "application/octet-stream" content type from an inputstream.
Attributes
Creates an SourceBody with "application/octet-stream" content type from a file.
Creates an SourceBody with "application/octet-stream" content type from a file.
Attributes
Creates an InMemoryBody with "application/octet-stream" content type from an array of bytes.
Creates an InMemoryBody with "application/octet-stream" content type from an array of bytes.
Attributes
Creates an InMemoryBody with "application/octet-stream" content type from a bytebuffer.
Creates an InMemoryBody with "application/octet-stream" content type from a bytebuffer.
Attributes
Creates an InMemoryBody with "application/octet-stream" content type.
Creates an InMemoryBody with "application/octet-stream" content type.
Attributes
Creates an InMemoryBody with "text/plain" content type.
Creates an InMemoryBody with "text/plain" content type.
Attributes
Creates an InMemoryBody with "text/plain" content type from a StringBuilder
Creates an InMemoryBody with "text/plain" content type from a StringBuilder
Attributes
Creates a BodyWritable with an identity function, with "application/octet-stream" content type.
Creates a BodyWritable with an identity function, with "application/octet-stream" content type.
Attributes
Creates an InMemoryBody with "application/x-www-form-urlencoded" content type.
Creates an InMemoryBody with "application/x-www-form-urlencoded" content type.