Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for networkResponse (0.17 sec)

  1. docs/recipes.md

              println("Response 1 response:          $it")
              println("Response 1 cache response:    ${it.cacheResponse}")
              println("Response 1 network response:  ${it.networkResponse}")
              return@use it.body!!.string()
            }
    
            val response2Body = client.newCall(request).execute().use {
              if (!it.isSuccessful) throw IOException("Unexpected code $it")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Feb 18 08:52:22 GMT 2022
    - 40.2K bytes
    - Viewed (1)
  2. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

              assertNotNull(it.networkResponse)
    
              assertEquals(3, it.cacheControl.maxAgeSeconds)
              assertTrue(it.cacheControl.isPublic)
            }
    
          client.newCall(request)
            .execute()
            .use {
              assertEquals(200, it.code)
              assertNotNull(it.cacheResponse)
              assertNull(it.networkResponse)
            }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  3. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val body: ResponseBody = response.body
        val builder: Response.Builder = response.newBuilder()
        val redirect: Boolean = response.isRedirect
        val networkResponse: Response? = response.networkResponse
        val cacheResponse: Response? = response.cacheResponse
        val priorResponse: Response? = response.priorResponse
        val challenges: List<Challenge> = response.challenges()
    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)
  4. docs/changelogs/upgrading_to_okhttp_4.md

     * **PushPromise**: headers, method, path, response
     * **Request**: body, cacheControl, headers, method, url
     * **Response**: body, cacheControl, cacheResponse, code, handshake, headers, message,
       networkResponse, priorResponse, protocol, receivedResponseAtMillis, request, sentRequestAtMillis
     * **Route**: address, proxy, socketAddress
     * **TlsVersion**: javaName
    
    #### Renamed Functions
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Cache.kt

          // Use the request headers sent over the network, since that's what the response varies on.
          // Otherwise OkHttp-supplied headers like "Accept-Encoding: gzip" may be lost.
          val requestHeaders = networkResponse!!.request.headers
          val responseHeaders = headers
          return varyHeaders(requestHeaders, responseHeaders)
        }
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  6. okhttp/api/okhttp.api

    	public final fun -deprecated_handshake ()Lokhttp3/Handshake;
    	public final fun -deprecated_headers ()Lokhttp3/Headers;
    	public final fun -deprecated_message ()Ljava/lang/String;
    	public final fun -deprecated_networkResponse ()Lokhttp3/Response;
    	public final fun -deprecated_priorResponse ()Lokhttp3/Response;
    	public final fun -deprecated_protocol ()Lokhttp3/Protocol;
    	public final fun -deprecated_receivedResponseAtMillis ()J
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CallTest.kt

          .assertReceivedResponseAtMillis(request1SentAt, request1ReceivedAt)
    
        // Check the network response. It has the caller's request, plus some caching headers.
        cacheHit.networkResponse()
          .assertCode(304)
          .assertHeader("Donut", "b")
          .assertRequestHeader("Accept-Language", "en-US")
          .assertRequestHeader("Accept-Charset", "UTF-8")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  8. CHANGELOG.md

        ```
    
     *  New: `Response.body` is now non-null. This was generally the case in OkHttp 4.x, but the Kotlin
        type declaration was nullable to support rare cases like the body on `Response.cacheResponse`,
        `Response.networkResponse`, and `Response.priorResponse`. In such cases the body is now
        non-null, but attempts to read its content will fail.
     *  New: Kotlin-specific APIs for request tags. Kotlin language users can lookup tags with a type
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_2x.md

        connection. Now it is.
     *  Fix: Never return null on `call.proceed()`. This was a bug in call
        cancelation.
     *  Fix: When a network interceptor mutates a request, that change is now
        reflected in `Response.networkResponse()`.
     *  Fix: Badly-behaving caches now throw a checked exception instead of a
        `NullPointerException`.
     *  Fix: Better handling of uncaught exceptions in MockWebServer with HTTP/2.
    
    ## Version 2.3.0
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
Back to top