Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for asRequestBody (0.22 sec)

  1. 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_.
     *  Fix: Permit response codes of zero for compatibility with OkHttp 3.x.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        requestBody = byteArrayOf(0, 1).toRequestBody(null, 0, 2)
        requestBody = byteArrayOf(0, 1).toRequestBody("".toMediaTypeOrNull(), 0, 2)
        requestBody = File("").asRequestBody(null)
        requestBody = File("").asRequestBody("".toMediaTypeOrNull())
      }
    
      @Test
      fun response() {
        val response: Response = Response.Builder().build()
        val request: Request = response.request
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
Back to top