Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for priorResponse (0.05 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt

            require(cacheResponse == null) { "$name.cacheResponse != null" }
            require(priorResponse == null) { "$name.priorResponse != null" }
          }
        }
    
        open fun priorResponse(priorResponse: Response?) =
          apply {
            this.priorResponse = priorResponse
          }
    
        open fun trailers(trailersSource: TrailersSource): Builder =
          apply {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 14:39:28 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  2. docs/recipes.md

        }
        ```
    
        This above code relies on this `responseCount` extension val:
    
        ```kotlin
        val Response.responseCount: Int
          get() = generateSequence(this) { it.priorResponse }.count()
        ```
    === ":material-language-java: Java"
        ```java
          private final OkHttpClient client;
    
          public Authenticate() {
            client = new OkHttpClient.Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

          ),
        )
        server.enqueue(MockResponse(body = "C"))
        executeSynchronously("/a")
          .assertCode(200)
          .assertBody("C")
          .priorResponse()
          .assertCode(302)
          .assertHeader("Test", "Redirect from /b to /c")
          .priorResponse()
          .assertCode(301)
          .assertHeader("Test", "Redirect from /a to /b")
    
        // New connection.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  4. okhttp/api/jvm/okhttp.api

    	public final fun newBuilder ()Lokhttp3/Response$Builder;
    	public final fun peekBody (J)Lokhttp3/ResponseBody;
    	public final fun peekTrailers ()Lokhttp3/Headers;
    	public final fun priorResponse ()Lokhttp3/Response;
    	public final fun protocol ()Lokhttp3/Protocol;
    	public final fun receivedResponseAtMillis ()J
    	public final fun request ()Lokhttp3/Request;
    	public final fun sentRequestAtMillis ()J
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  5. okhttp/api/android/okhttp.api

    	public final fun newBuilder ()Lokhttp3/Response$Builder;
    	public final fun peekBody (J)Lokhttp3/ResponseBody;
    	public final fun peekTrailers ()Lokhttp3/Headers;
    	public final fun priorResponse ()Lokhttp3/Response;
    	public final fun protocol ()Lokhttp3/Protocol;
    	public final fun receivedResponseAtMillis ()J
    	public final fun request ()Lokhttp3/Request;
    	public final fun sentRequestAtMillis ()J
    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