Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for asResponseBody (0.14 sec)

  1. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

            ReplaceWith(
              expression = "content.asResponseBody(contentType, contentLength)",
              imports = ["okhttp3.ResponseBody.Companion.asResponseBody"],
            ),
          level = DeprecationLevel.WARNING,
        )
        fun create(
          contentType: MediaType?,
          contentLength: Long,
          content: BufferedSource,
        ): ResponseBody = content.asResponseBody(contentType, contentLength)
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. docs/changelogs/upgrading_to_okhttp_4.md

    | RequestBody.create(File)            | File.asRequestBody()            |
    | RequestBody.create(String)          | String.toRequestBody()          |
    | ResponseBody.create(BufferedSource) | BufferedSource.asResponseBody() |
    | ResponseBody.create(ByteArray)      | ByteArray.toResponseBody()      |
    | ResponseBody.create(ByteString)     | ByteString.toResponseBody()     |
    | ResponseBody.create(String)         | String.toResponseBody()         |
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Response.kt

     */
    package okhttp3
    
    import java.io.Closeable
    import java.io.IOException
    import java.net.HttpURLConnection.HTTP_PROXY_AUTH
    import java.net.HttpURLConnection.HTTP_UNAUTHORIZED
    import okhttp3.ResponseBody.Companion.asResponseBody
    import okhttp3.internal.commonAddHeader
    import okhttp3.internal.commonBody
    import okhttp3.internal.commonCacheControl
    import okhttp3.internal.commonCacheResponse
    import okhttp3.internal.commonClose
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jul 06 09:38:30 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        responseBody = byteArrayOf(0, 1).toResponseBody("".toMediaType())
        responseBody = byteArrayOf(0, 1).toResponseBody(null)
        responseBody = Buffer().asResponseBody("".toMediaType(), 0L)
        responseBody = Buffer().asResponseBody(null, 0L)
      }
    
      @Test
      fun route() {
        val route: Route = factory.newRoute()
        val address: Address = route.address
        val proxy: Proxy = route.proxy
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_4x.md

    ## 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_.
     *  Fix: Permit response codes of zero for compatibility with OkHttp 3.x.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
Back to top