put

suspend fun put(resource: String, headers: Map<String, Any>? = FetchDefaults.Headers, body: ByteArray? = null, redirect: RequestRedirect? = FetchDefaults.Redirect, abortController: AbortController? = null): ByteArray(source)

Call PUT on a target resource.

See also tryPut, which will return null if the request fails for any reason.