Applies this request to the specified object.
Applies this request to the specified object.
the multipart threshold
the total size in bytes to be PUTed
the object metadata
import scala.concurrent.Future import akka.stream.Materializer import play.api.libs.ws.BodyWritable import com.zengularity.benji.ObjectRef def foo(myObject: ObjectRef)( implicit m: Materializer, w: BodyWritable[Array[Byte]]) = { val put = myObject.put[Array[Byte], Long] val upload = put(0L, metadata = Map("foo" -> "bar")) { (sz, chunk) => Future.successful(sz + chunk.size) } upload }
A PUT request: allows you to update the contents of this object.
the consumer input type
the consumer output type