Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for arrayFor (0.51 sec)

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

        socket.enabledCipherSuites =
          arrayOf(
            CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256.javaName,
          )
        socket.enabledProtocols =
          arrayOf(
            TlsVersion.TLS_1_2.javaName,
            TlsVersion.TLS_1_1.javaName,
          )
        assertThat(tlsSpec.isCompatible(socket)).isTrue()
        socket.enabledProtocols = arrayOf(TlsVersion.TLS_1_1.javaName)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. internal/grid/types.go

    func (NoPayload) Recycle() {}
    
    // ArrayOf wraps an array of Messagepack compatible objects.
    type ArrayOf[T RoundTripper] struct {
    	aPool sync.Pool // Arrays
    	ePool sync.Pool // Elements
    }
    
    // NewArrayOf returns a new ArrayOf.
    // You must provide a function that returns a new instance of T.
    func NewArrayOf[T RoundTripper](newFn func() T) *ArrayOf[T] {
    	return &ArrayOf[T]{
    		ePool: sync.Pool{New: func() any {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

              chain: Array<out X509Certificate>?,
              authType: String?,
            ) {}
    
            override fun getAcceptedIssuers(): Array<X509Certificate> = arrayOf()
          }
    
        val sslContext =
          Platform.get().newSSLContext().apply {
            init(null, arrayOf(trustManager), null)
          }
        val sslSocketFactory = sslContext.socketFactory
    
        val hostnameVerifier = HostnameVerifier { _, _ -> true }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 27K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

              Arrays.asList(serverRootCa.certificate, clientRootCa.certificate),
              emptyList(),
            )
          val sslContext = SSLContext.getInstance("TLS")
          sslContext.init(
            arrayOf<KeyManager>(keyManager),
            arrayOf<TrustManager>(trustManager),
            SecureRandom(),
          )
          sslContext.socketFactory
        } catch (e: GeneralSecurityException) {
          throw AssertionError(e)
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      @GwtIncompatible // SerializableTester
      public void testKeySetIsSerializable_jdkBackedImmutableMap() {
        class NonSerializableClass {}
    
        Entry<String, NonSerializableClass>[] entries =
            arrayOf(ImmutableMap.entryOf("one", new NonSerializableClass()));
    
        ImmutableMap<String, NonSerializableClass> map =
            JdkBackedImmutableMap.create(1, entries, /* throwIfDuplicateKeys= */ true);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

      open fun newSslSocketFactory(trustManager: X509TrustManager): SSLSocketFactory {
        try {
          return newSSLContext().apply {
            init(null, arrayOf<TrustManager>(trustManager), null)
          }.socketFactory
        } catch (e: GeneralSecurityException) {
          throw AssertionError("No System TLS: $e", e) // The system has no TLS. Just give up.
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

          newTrustManager(
            keystoreType,
            emptyList(),
            emptyList(),
          )
        val sslContext = get().newSSLContext()
        sslContext.init(
          arrayOf<KeyManager>(x509KeyManager),
          arrayOf<TrustManager>(trustManager),
          SecureRandom(),
        )
        return sslContext.socketFactory
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  8. docs/features/https.md

          init {
            val trustManager = trustManagerForCertificates(trustedCertificatesInputStream())
            val sslContext = SSLContext.getInstance("TLS")
            sslContext.init(null, arrayOf<TrustManager>(trustManager), null)
            val sslSocketFactory = sslContext.socketFactory
    
            client = OkHttpClient.Builder()
                .sslSocketFactory(sslSocketFactory, trustManager)
                .build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Dec 24 00:16:30 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

              x509Certificates: Array<X509Certificate>,
              s: String,
            ) {
            }
    
            override fun getAcceptedIssuers(): Array<X509Certificate> {
              return arrayOf()
            }
          }
        client =
          client.newBuilder()
            .sslSocketFactory(client.sslSocketFactory, trustManager)
            .build()
        server.enqueue(MockResponse())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

       * to use less. We'll put a cap at 16K. This is arbitrary but should be enough for most purposes.
       */
      private const val SETTINGS_HEADER_TABLE_SIZE_LIMIT = 16_384
    
      val STATIC_HEADER_TABLE =
        arrayOf(
          Header(TARGET_AUTHORITY, ""),
          Header(TARGET_METHOD, "GET"),
          Header(TARGET_METHOD, "POST"),
          Header(TARGET_PATH, "/"),
          Header(TARGET_PATH, "/index.html"),
          Header(TARGET_SCHEME, "http"),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top