Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 245 for Protocols (0.06 seconds)

  1. okhttp/src/jvmMain/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
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Address.kt

          .host(uriHost)
          .port(uriPort)
          .build()
    
      /**
       * The protocols the client supports. This method always returns a non-null list that
       * contains minimally [Protocol.HTTP_1_1].
       */
      @get:JvmName("protocols")
      val protocols: List<Protocol> = protocols.toImmutableList()
    
      @get:JvmName("connectionSpecs")
      val connectionSpecs: List<ConnectionSpec> =
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/validation/UriTypeValidator.java

            if (StringUtil.isNotBlank(value)) {
                return check(protocols, value);
            }
            return true;
        }
    
        /**
         * Checks if the given value matches any of the specified protocols.
         *
         * @param protocols the allowed protocols
         * @param value the URI string to validate
         * @return true if the value matches allowed protocols, false otherwise
         */
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sun Nov 23 12:34:02 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  4. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

        delegate.protocolNegotiationEnabled = protocolNegotiationEnabled
      }
    
      @JvmName("-deprecated_protocols")
      fun setProtocols(protocols: List<Protocol>) {
        delegate.protocols = protocols
      }
    
      @JvmName("-deprecated_protocols")
      fun protocols(): List<Protocol> = delegate.protocols
    
      fun useHttps(
        sslSocketFactory: SSLSocketFactory,
        tunnelProxy: Boolean,
      ) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jun 18 00:19:42 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  5. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/Android10SocketAdapter.kt

      override fun configureTlsExtensions(
        sslSocket: SSLSocket,
        hostname: String?,
        protocols: List<Protocol>,
      ) {
        try {
          SSLSockets.setUseSessionTickets(sslSocket, true)
    
          val sslParameters = sslSocket.sslParameters
    
          // Enable ALPN.
          sslParameters.applicationProtocols = Platform.alpnProtocolNames(protocols).toTypedArray()
    
          sslSocket.sslParameters = sslParameters
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  6. okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/BouncyCastlePlatform.kt

        )
    
      override fun configureTlsExtensions(
        sslSocket: SSLSocket,
        hostname: String?,
        protocols: List<@JvmSuppressWildcards Protocol>,
      ) {
        if (sslSocket is BCSSLSocket) {
          val sslParameters = sslSocket.parameters
    
          // Enable ALPN.
          val names = alpnProtocolNames(protocols)
          sslParameters.applicationProtocols = names.toTypedArray()
    
          sslSocket.parameters = sslParameters
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 3.3K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt

         * Returns the concatenation of 8-bit, length prefixed protocol names.
         * http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-04#page-4
         */
        fun concatLengthPrefixed(protocols: List<Protocol>): ByteArray {
          val result = Buffer()
          for (protocol in alpnProtocolNames(protocols)) {
            result.writeByte(protocol.length)
            result.writeUtf8(protocol)
          }
          return result.readByteArray()
        }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jul 28 07:33:49 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt

          RequestBodyEnd::class,
          ConnectionReleased::class,
          CallEnd::class,
        )
      }
    
      private fun enableTls(vararg protocols: Protocol) {
        client =
          client
            .newBuilder()
            .protocols(protocols.toList())
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  9. okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/OpenJSSEPlatform.kt

        sslSocket: SSLSocket,
        hostname: String?,
        protocols: List<@JvmSuppressWildcards Protocol>,
      ) {
        if (sslSocket is org.openjsse.javax.net.ssl.SSLSocket) {
          val sslParameters = sslSocket.sslParameters
    
          if (sslParameters is org.openjsse.javax.net.ssl.SSLParameters) {
            // Enable ALPN.
            val names = alpnProtocolNames(protocols)
            sslParameters.applicationProtocols = names.toTypedArray()
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  10. okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt

      override fun configureTlsExtensions(
        sslSocket: SSLSocket,
        hostname: String?,
        protocols: List<@JvmSuppressWildcards Protocol>,
      ) {
        if (Conscrypt.isConscrypt(sslSocket)) {
          // Enable session tickets.
          Conscrypt.setUseSessionTickets(sslSocket, true)
    
          // Enable ALPN.
          val names = alpnProtocolNames(protocols)
          Conscrypt.setApplicationProtocols(sslSocket, names.toTypedArray())
        } else {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 4.6K bytes
    - Click Count (0)
Back to Top