- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for curlPutWithBody (0.05 sec)
-
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)Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 24 11:36:14 UTC 2025 - 24.4K bytes - Viewed (0)