Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Glover (0.23 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        if (http2Connection == null) return false
    
        // 2. The routes must share an IP address.
        if (routes == null || !routeMatchesAny(routes)) return false
    
        // 3. This connection's server certificate's must cover the new host.
        if (address.hostnameVerifier !== OkHostnameVerifier) return false
        if (!supportsUrl(address.url)) return false
    
        // 4. Certificate pinning must match the host.
        try {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

       * should be used specifically for [java.io.Closeable] objects and in conjunction with
       * [logCloseableLeak].
       */
      open fun getStackTraceForCloseable(closer: String): Any? {
        return when {
          logger.isLoggable(Level.FINE) -> Throwable(closer) // These are expensive to allocate.
          else -> null
        }
      }
    
      open fun logCloseableLeak(
        message: String,
        stackTrace: Any?,
      ) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  3. okhttp-dnsoverhttps/README.md

    OkHttp DNS over HTTPS Implementation
    ====================================
    
    This module is an implementation of [DNS over HTTPS][1] using OkHttp.
    
    ### Download
    
    ```kotlin
    testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.12.0")
    ```
    
    ### Usage
    
    ```
      val appCache = Cache(File("cacheDir", "okhttpcache"), 10 * 1024 * 1024)
      val bootstrapClient = OkHttpClient.Builder().cache(appCache).build()
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 740 bytes
    - Viewed (4)
  4. samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/UnixDomainSocketFactory.java

    import java.net.InetAddress;
    import java.net.InetSocketAddress;
    import java.net.Socket;
    import javax.net.SocketFactory;
    import jnr.unixsocket.UnixSocketChannel;
    
    /** Impersonate TCP-style SocketFactory over UNIX domain sockets. */
    public final class UnixDomainSocketFactory extends SocketFactory {
      private final File path;
    
      public UnixDomainSocketFactory(File path) {
        this.path = path;
      }
    
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 03 21:33:52 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  5. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

          assertThat(recorded.headers["Content-Length"]).isEqualTo("0")
        }
        assertThat(recorded.headers["HTTP2-Settings"]).isNotNull()
        assertThat(recorded.headers["Upgrade"]).isEqualTo("h2c") // HTTP/2 over plaintext!
        assertThat(recorded.headers["User-Agent"]!!).matches(Regex("Java-http-client/.*"))
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  6. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

    import okio.ByteString.Companion.encodeUtf8
    import okio.Options
    
    /**
     * A decoded [mapping table] that can perform the [mapping step] of IDNA processing.
     *
     * This implementation is optimized for readability over efficiency.
     *
     * This implements non-transitional processing by preserving deviation characters.
     *
     * This implementation's STD3 rules are configured to `UseSTD3ASCIIRules=false`. This is
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  7. docs/features/events.md

    Request newYorkTimesRequest = new Request.Builder()
        .url("https://www.nytimes.com/")
        .build();
    client.newCall(newYorkTimesRequest).enqueue(new Callback() {
      ...
    });
    ```
    
    Running this race over home WiFi shows the Times (`0002`) completes just slightly sooner than the Post (`0001`):
    
    ```
    0001 https://www.washingtonpost.com/
    0001 0.000 callStart
    0002 https://www.nytimes.com/
    0002 0.000 callStart
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  8. docs/changelogs/changelog_4x.md

    
    ## Version 4.7.0
    
    _2020-05-17_
    
     *  New: `HandshakeCertificates.Builder.addInsecureHost()` makes it easy to turn off security in
        private development environments that only carry test data. Prefer this over creating an
        all-trusting `TrustManager` because only hosts on the allowlist are insecure. From
        [our DevServer sample][dev_server]:
    
        ```kotlin
        val clientCertificates = HandshakeCertificates.Builder()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

          verifyHostname(hostname, it)
        }
      }
    
      /**
       * This is like [toLowerCase] except that it does nothing if this contains any non-ASCII
       * characters. We want to avoid lower casing special chars like U+212A (Kelvin symbol) because
       * they can return ASCII characters that match real hostnames.
       */
      private fun String.asciiToLowercase(): String {
        return when {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

        }
      }
    
      /** Builds a configured certificate pinner. */
      class Builder {
        val pins = mutableListOf<Pin>()
    
        /**
         * Pins certificates for `pattern`.
         *
         * @param pattern lower-case host name or wildcard pattern such as `*.example.com`.
         * @param pins SHA-256 or SHA-1 hashes. Each pin is a hash of a certificate's Subject Public Key
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
Back to top