Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for enableProtocol (0.21 sec)

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

              .post(AsyncRequestBody())
              .build(),
          )
        assertFailsWith<ProtocolException> {
          call.execute()
        }
      }
    
      @Test
      fun trueDuplexClientWritesFirst() {
        enableProtocol(Protocol.HTTP_2)
        val body =
          MockStreamHandler()
            .receiveRequest("request A\n")
            .sendResponse("response B\n")
            .receiveRequest("request C\n")
            .sendResponse("response D\n")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

            .dns(dns)
            .socketFactory(socketFactory)
            .eventListenerFactory(clientTestRule.wrap(listener))
            .build()
      }
    
      @Test
      fun http2OneBadHostOneGoodNoRetryOnConnectionFailure() {
        enableProtocol(Protocol.HTTP_2)
    
        val request = Request(server1.url("/"))
    
        server1.enqueue(refusedStream)
        server2.enqueue(bodyResponse)
    
        dns[server1.hostName] = listOf(ipv6, ipv4)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue May 14 17:48:07 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

      }
    
      @Test
      fun serverTruncatesRequestOnLongPostHttp1() {
        serverTruncatesRequestOnLongPost(https = false)
      }
    
      @Test
      fun serverTruncatesRequestOnLongPostHttp2() {
        enableProtocol(Protocol.HTTP_2)
        serverTruncatesRequestOnLongPost(https = true)
      }
    
      private fun serverTruncatesRequestOnLongPost(https: Boolean) {
        server.enqueue(
          MockResponse(
            body = "abc",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CallTest.kt

      fun getReturns500() {
        server.enqueue(MockResponse(code = 500))
        executeSynchronously("/")
          .assertCode(500)
          .assertNotSuccessful()
      }
    
      @Test
      fun get_HTTP_2() {
        enableProtocol(Protocol.HTTP_2)
        get()
      }
    
      @Test
      fun get_HTTPS() {
        enableTls()
        get()
      }
    
      @Test
      fun repeatedHeaderNames() {
        server.enqueue(
          MockResponse(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

      }
    
      @Test
      fun zeroLengthPost_HTTP_2() {
        enableProtocol(Protocol.HTTP_2)
        zeroLengthPost()
      }
    
      /** For example, creating an Amazon S3 bucket ends up as a zero-length POST.  */
      @Test
      fun zeroLengthPut() {
        zeroLengthPayload("PUT")
      }
    
      @Test
      fun zeroLengthPut_HTTP_2() {
        enableProtocol(Protocol.HTTP_2)
        zeroLengthPut()
      }
    
    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