put
suspend fun put(target: HttpTarget, path: String, common: CommonOptions = CommonOptions.Default, body: HttpBody? = null, headers: List<Header> = emptyList()): CouchbaseHttpResponse
Content copied to clipboard
Issues a PUT
request to the target Couchbase service.
If the path has variable parts, consider using formatPath to build the path string.
Request content and type is defined by body. Specifying a body automatically sets the "Content-Type" header appropriately.
There's usually no reason to set extra headers unless you're invoking an API that requires a special header.