Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for requerits (0.18 sec)

  1. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        // No authorization header for the first request...
        var request = server.takeRequest()
        assertThat(request.headers["Authorization"]).isNull()
    
        // ...but the three requests that follow requests include an authorization header.
        for (i in 0..2) {
          request = server.takeRequest()
          assertThat(request.requestLine).isEqualTo("GET / HTTP/1.1")
          assertThat(request.headers["Authorization"])
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

            .build()
        assertFailsWith<IOException> {
          client.newCall(Request.Builder().url(server.url("/0")).build()).execute()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Too many follow-up requests: 21")
        }
      }
    
      /**
       * We had a bug where we were passing a null route to the authenticator.
       * https://github.com/square/okhttp/issues/3809
       */
      @Test
    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)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

        assertThat(response1.body.string()).isEqualTo("ABC")
        val response2 = client.newCall(request).execute() // Cached!
        assertThat(response2.body.string()).isEqualTo("ABC")
    
        // 2 requests + 2 redirects
        assertThat(cache.requestCount()).isEqualTo(4)
        assertThat(cache.networkCount()).isEqualTo(2)
        assertThat(cache.hitCount()).isEqualTo(2)
      }
    
      @Test
      fun redirectToCachedResult() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
Back to top