Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for priorResponse (0.04 sec)

  1. 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)
  2. 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)
  3. CHANGELOG.md

        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)
  4. 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)
  5. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

        val challengeResponse = authenticator.responses[0]
        assertThat(
          challengeResponse.request.url
            .toUrl()
            .path,
        ).isEqualTo("/b")
        val redirectedBy = challengeResponse.priorResponse
        assertThat(
          redirectedBy!!
            .request.url
            .toUrl()
            .path,
        ).isEqualTo("/a")
      }
    
      @Test
      fun attemptAuthorization20Times() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
Back to top