Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 27 of 27 for networkResponse (1.05 sec)

  1. 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)
            }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/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)
        }
    
        /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  3. okhttp/api/jvm/okhttp.api

    	public final fun headers (Ljava/lang/String;)Ljava/util/List;
    	public final fun isRedirect ()Z
    	public final fun isSuccessful ()Z
    	public final fun message ()Ljava/lang/String;
    	public final fun networkResponse ()Lokhttp3/Response;
    	public final fun newBuilder ()Lokhttp3/Response$Builder;
    	public final fun peekBody (J)Lokhttp3/ResponseBody;
    	public final fun peekTrailers ()Lokhttp3/Headers;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  4. 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
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  5. 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
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 31.6K bytes
    - Viewed (1)
  6. okhttp/src/jvmTest/kotlin/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")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  7. okhttp/api/android/okhttp.api

    	public final fun headers (Ljava/lang/String;)Ljava/util/List;
    	public final fun isRedirect ()Z
    	public final fun isSuccessful ()Z
    	public final fun message ()Ljava/lang/String;
    	public final fun networkResponse ()Lokhttp3/Response;
    	public final fun newBuilder ()Lokhttp3/Response$Builder;
    	public final fun peekBody (J)Lokhttp3/ResponseBody;
    	public final fun peekTrailers ()Lokhttp3/Headers;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
Back to top