Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readAfterLastByte (0.15 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        val request2 = server.takeRequest()
        assertThat(request2.path).isEqualTo("/foo")
      }
    
      @ParameterizedTest
      @ArgumentsSource(ProtocolParamProvider::class)
      fun readAfterLastByte(
        protocol: Protocol,
        mockWebServer: MockWebServer,
      ) {
        setUp(protocol, mockWebServer)
        server.enqueue(MockResponse(body = "ABC"))
        val call = client.newCall(Request(server.url("/")))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        server.shutdown()
        assertFailsWith<ConnectException> {
          getResponse(newRequest("/"))
        }
      }
    
      /** http://code.google.com/p/android/issues/detail?id=14562  */
      @Test
      fun readAfterLastByte() {
        server.enqueue(
          MockResponse.Builder()
            .body("ABC")
            .clearHeaders()
            .addHeader("Connection: close")
            .socketPolicy(DisconnectAtEnd)
            .build(),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
Back to top