- Sort Score
- Result 10 results
- Languages All
Results 21 - 27 of 27 for toRequestBody (0.14 sec)
-
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
.method(requestMethod, "abc".toRequestBody(null)) .build() assertThat(request.method).isEqualTo(requestMethod) } private fun assertMethodForbidsRequestBody(requestMethod: String) { assertFailsWith<IllegalArgumentException> { Request.Builder() .url(server.url("/")) .method(requestMethod, "abc".toRequestBody(null)) .build() } }
Registered: 2024-06-16 04:42 - Last Modified: 2024-01-20 10:30 - 131.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt
* limitations under the License. */ @file:Suppress("ktlint:standard:filename") package okhttp3.internal import okhttp3.Headers import okhttp3.RequestBody import okhttp3.RequestBody.Companion.toRequestBody import okhttp3.ResponseBody import okhttp3.ResponseBody.Companion.toResponseBody import okio.ArrayIndexOutOfBoundsException import okio.Buffer import okio.BufferedSink import okio.BufferedSource
Registered: 2024-06-16 04:42 - Last Modified: 2024-05-13 13:42 - 11K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/MultipartBody.kt
return Part(headers, body) } @JvmStatic fun createFormData( name: String, value: String, ): Part = createFormData(name, null, value.toRequestBody()) @JvmStatic fun createFormData( name: String, filename: String?, body: RequestBody, ): Part { val disposition = buildString {
Registered: 2024-06-16 04:42 - Last Modified: 2024-01-08 01:13 - 10.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
import mockwebserver3.junit5.internal.MockWebServerInstance import okhttp3.Cache.Companion.key import okhttp3.Headers.Companion.headersOf import okhttp3.MediaType.Companion.toMediaType import okhttp3.RequestBody.Companion.toRequestBody import okhttp3.internal.addHeaderLenient import okhttp3.internal.cacheGet import okhttp3.internal.platform.Platform.Companion.get import okhttp3.java.net.cookiejar.JavaNetCookieJar import okhttp3.testing.PlatformRule
Registered: 2024-06-16 04:42 - Last Modified: 2024-04-10 19:46 - 108.6K bytes - Viewed (0) -
docs/changelogs/changelog_4x.md
import this and we want to ease upgrades for their users. ## Version 4.0.0-RC2 _2019-06-21_ * New: Require Kotlin 1.3.40. * New: Change the Kotlin API from `File.toRequestBody()` to `File.asRequestBody()` and `BufferedSource.toResponseBody()` to `BufferedSource.asResponseBody()`. If the returned value is a view of what created it, we use _as_.
Registered: 2024-06-16 04:42 - Last Modified: 2024-04-17 13:25 - 25.2K bytes - Viewed (0) -
CHANGELOG.md
* New: Use TLSv1.3 when running on JDK 8u261 or newer. * New: `QueueDispatcher.clear()` may be used to reset a MockWebServer instance. * New: `FileDescriptor.toRequestBody()` may be particularly useful for users of Android's Storage Access Framework. * Upgrade: [Kotlin 1.5.31][kotlin_1_5_31]. * Upgrade: [Okio 3.0.0][okio_3_0_0]. ## Version 5.0.0-alpha.2
Registered: 2024-06-16 04:42 - Last Modified: 2024-04-18 01:31 - 21.4K bytes - Viewed (0) -
docs/recipes.md
| * _1.2_ August 11, 2013 |""".trimMargin() val request = Request.Builder() .url("https://api.github.com/markdown/raw") .post(postBody.toRequestBody(MEDIA_TYPE_MARKDOWN)) .build() client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response")
Registered: 2024-06-16 04:42 - Last Modified: 2022-02-18 08:52 - 40.2K bytes - Viewed (0)