Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 0189 (0.01 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        assertThat(recordedRequest2.body?.utf8()).isEqualTo(body)
        assertThat(recordedRequest2.headers["Authorization"]).isEqualTo(credential)
      }
    
      @Test
      fun attemptAuthorization20Times() {
        for (i in 0..19) {
          server.enqueue(MockResponse(code = 401))
        }
        server.enqueue(MockResponse(body = "Success!"))
        val credential = basic("jesse", "secret")
        client =
          client
            .newBuilder()
    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/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

        val page2 = server.takeRequest()
        assertThat(page2.requestLine)
          .isEqualTo("$method /page2 HTTP/1.1")
      }
    
      @Test
      fun follow20Redirects() {
        for (i in 0..19) {
          server.enqueue(
            MockResponse(
              code = HttpURLConnection.HTTP_MOVED_TEMP,
              headers = headersOf("Location", "/" + (i + 1)),
              body = "Redirecting to /" + (i + 1),
    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