- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for curlPutWithBody (0.31 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt
| -H 'Content-Type: text/plain' \ | --data '{"key":"value"}' """.trimMargin(), ) } /** Put is not the default method so `-X 'PUT'` is included. */ @Test fun curlPutWithBody() { val body = "{\"key\":\"value\"}".toRequestBody("application/json".toMediaType()) val request = Request .Builder() .url("https://api.example.com/data") .put(body)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 24.6K bytes - Click Count (0)