Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 110 for Conlay (0.14 sec)

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

     * `::1` will reach the IPv6 server.
     *
     * By orchestrating two different servers with the same port but different IP addresses, we can
     * test what OkHttp does when both are reachable, or if only one is reachable.
     *
     * This test only runs on host machines that have both IPv4 and IPv6 addresses for localhost.
     */
    @Timeout(30)
    class FastFallbackTest {
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  2. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt

      }
    
      private fun readStory(file: Path): Story {
        fileSystem.read(file) {
          return readStory(this)
        }
      }
    
      /** Iterate through the hpack-test-case resources, only picking stories for the current draft.  */
      fun storiesForCurrentDraft(): Array<String> {
        val resource =
          HpackJsonUtil::class.java.getResource("/hpack-test-case")
            ?: return arrayOf()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/SocksProxyTest.kt

        val client =
          clientTestRule.newClientBuilder()
            .proxy(socksProxy.proxy())
            .build()
        val url =
          server.url("/")
            .newBuilder()
            .host(SocksProxy.HOSTNAME_THAT_ONLY_THE_PROXY_KNOWS)
            .build()
        val request = Request.Builder().url(url).build()
        val response1 = client.newCall(request).execute()
        assertThat(response1.body.string()).isEqualTo("abc")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

          }
          frameHeader(
            streamId = 0,
            length = 0,
            type = TYPE_SETTINGS,
            flags = FLAG_ACK,
          )
          sink.flush()
        }
      }
    
      /**
       * HTTP/2 only. Send a push promise header block.
       *
       * A push promise contains all the headers that pertain to a server-initiated request, and a
       * `promisedStreamId` to which response frames will be delivered. Push promise frames are sent as
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  5. docs/features/caching.md

    The response will have non-null `cacheResponse` and `networkResponse`. The cacheResponse will be used as the top level
    response only if the response code is HTTP/1.1 304 Not Modified.
     
     - CallStart
     - **CacheConditionalHit**
     - ConnectionAcquired
     - ... Standard Events...
     - ResponseBodyEnd _(0 bytes)_
     - **CacheHit**
     - ConnectionReleased
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

            )
          },
          construct = {
            BasicConstraints(
              ca = it[0] as Boolean,
              maxIntermediateCas = it[1] as Long?,
            )
          },
        )
    
      /**
       * Note that only a subset of available choices are implemented.
       *
       * ```
       * GeneralName ::= CHOICE {
       *   otherName                       [0]     OtherName,
       *   rfc822Name                      [1]     IA5String,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.6K bytes
    - Viewed (1)
  7. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

     * cases the consuming thread must call [close] when it has finished reading the response
     * body.
     *
     * ### The response body can be consumed only once.
     *
     * This class may be used to stream very large responses. For example, it is possible to use this
     * class to read a response that is larger than the entire memory allocated to the current process.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

    @Tag("Slow")
    class RealWebSocketTest {
      // NOTE: Fields are named 'client' and 'server' for cognitive simplicity. This differentiation has
      // zero effect on the behavior of the WebSocket API which is why tests are only written once
      // from the perspective of a single peer.
      private val random = Random(0)
      private val client2Server = Pipe(8192L)
      private val server2client = Pipe(8192L)
      private val taskFaker = TaskFaker()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 01:59:58 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

        bytesIn.writeByte(0x0a) // Literal name (len = 10)
        bytesIn.writeUtf8("custom-baz")
        bytesIn.writeByte(0x0d) // Literal value (len = 13)
        bytesIn.writeUtf8("custom-header")
    
        // Set to only support 110 bytes (enough for 2 headers).
        // Use a new Writer because we don't support change the dynamic table
        // size after Writer constructed.
        val writer = Hpack.Writer(110, false, bytesOut)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 38.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        assertThat(response.body.string()).isEqualTo("abc")
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
    
        // Note that although we have two routes available, we only use one. The retry is permitted
        // because there are routes available, but it chooses the existing connection since it isn't
        // yet considered unhealthy.
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(1)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
Back to top