Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 99 for Kirsty (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

    internal fun Regex.matchAtPolyfill(
      input: CharSequence,
      index: Int,
    ): MatchResult? {
      val candidate = find(input, index) ?: return null
      if (candidate.range.first != index) return null // Didn't match where it should have.
      return candidate
    }
    
    @JvmField
    val EMPTY_BYTE_ARRAY: ByteArray = ByteArray(0)
    
    /** Byte order marks. */
    internal val UNICODE_BOMS =
      Options.of(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt

            // Pick the first known protocol the peer advertises.
            for (i in 0..peerProtocols.size) {
              val protocol = peerProtocols[i] as String
              if (protocol in protocols) {
                selected = protocol
                return selected
              }
            }
            selected = protocols[0] // On no intersection, try peer's first protocol.
            return selected
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. mockwebserver-junit4/README.md

    MockWebServer for JUnit 4
    =========================
    
    This module integrates mockwebserver3.MockWebServer with JUnit 4.
    
    To use, first add this library as a test dependency:
    
    ```
    testImplementation("com.squareup.okhttp3:mockwebserver3-junit4:4.12.0")
    ```
    
    Then in tests annotated `@org.junit.Test`, you may declare a field with the `@Rule` annotation:
    
    ```
    @Rule public final MockWebServerRule serverRule = new MockWebServerRule();
    ```
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 707 bytes
    - Viewed (1)
  4. okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt

        serverReaderWithCompression.processNextFrame()
        callback.assertTextMessage("Hello")
      }
    
      @Test fun serverWithCompressionCompressedHelloTwoChunks() {
        data.write("418460b420bb92fced72".decodeHex()) // first 4 bytes of compressed 'Hello'
        data.write("80833851d9d4f156d9".decodeHex()) // last 3 bytes of compressed 'Hello'
        serverReaderWithCompression.processNextFrame()
        callback.assertTextMessage("Hello")
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  5. docs/features/connections.md

     * Prefer to alternate IP addresses from different address families, (IPv6 / IPv4), starting with IPv6.
     * Don't start a new attempt until 250 ms after the most recent attempt was started.
     * Keep whichever TCP connection succeeds first and cancel all the others.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Feb 21 03:33:59 GMT 2022
    - 5.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

          // 1. Server reads request and dequeues first response
          // 2. Client cancels request
          // 3. Server tries to send response on the canceled stream
          // Otherwise, there is no guarantee for the sequence. For example, the server may use the
          // first mocked response to respond to the second request.
          val response = super.dispatch(request)
    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)
  7. container-tests/src/test/java/okhttp3/containers/BasicMockServerTest.kt

            trustManagerFactory.init(keyStoreFactory.loadOrCreateKeyStore())
            val trustManager = trustManagerFactory.trustManagers.first() as X509TrustManager
    
            sslSocketFactory(socketFactory, trustManager)
          }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  8. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt

          listOf(
            DnsOverHttps.Builder()
              .client(bootstrapClient)
              .url(url)
              .post(true)
              .build(),
          )
        runBatch(badProviders, names)
        println("cached first run\n****************\n")
        names = listOf("google.com", "graph.facebook.com")
        bootstrapClient =
          bootstrapClient.newBuilder()
            .cache(dnsCache)
            .build()
        dnsProviders =
          providers(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/platform/OpenJSSEPlatform.kt

    import javax.net.ssl.TrustManagerFactory
    import javax.net.ssl.X509TrustManager
    import okhttp3.Protocol
    
    /**
     * Platform using OpenJSSE (https://github.com/openjsse/openjsse) if installed as the first
     * Security Provider.
     *
     * Requires org.openjsse:openjsse >= 1.1.0 on the classpath.
     */
    class OpenJSSEPlatform private constructor() : Platform() {
      private val provider: Provider = org.openjsse.net.ssl.OpenJSSE()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        assertThat(c2.socket().isClosed).isFalse()
    
        // Add a third connection
        val c3 = factory.newConnection(pool, routeC1, 75L)
    
        // The third connection bounces the first.
        assertThat(pool.closeConnections(100L)).isEqualTo(0L)
        assertThat(pool.connectionCount()).isEqualTo(2)
        assertThat(c1.socket().isClosed).isTrue()
        assertThat(c2.socket().isClosed).isFalse()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
Back to top