Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 472 for protocols (0.22 sec)

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

          OkHttpClient.Builder()
            .protocols(protocols as List<Protocol>)
        }.also { expected ->
          assertThat(expected.message).isEqualTo("protocols must not contain null")
        }
      }
    
      @Test fun spdy3IsRemovedFromProtocols() {
        val protocols =
          mutableListOf(
            Protocol.HTTP_1_1,
            Protocol.SPDY_3,
          )
        val client =
          OkHttpClient.Builder()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt

              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
          } else if ((methodName == "protocolSelected" || methodName == "selected") && callArgs.size == 1) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

      }
    
      @JvmName("-deprecated_protocols")
      @Deprecated(
        message = "moved to var",
        replaceWith = ReplaceWith(expression = "run { this.protocols = protocols }"),
        level = DeprecationLevel.ERROR,
      )
      fun setProtocols(protocols: List<Protocol>) {
        delegate.protocols = protocols
      }
    
      @JvmName("-deprecated_protocols")
      @Deprecated(
        message = "moved to var",
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/validation/UriTypeValidatorTest.java

            protocols = new String[] { "http:" };
            values = "https://www.foo.com/\nhttps://www.bar.com/";
            assertFalse(UriTypeValidator.check(protocols, values));
    
            protocols = new String[] { "http:" };
            values = "https://www.foo.com/\n \nhttps://www.bar.com/";
            assertFalse(UriTypeValidator.check(protocols, values));
    
            protocols = new String[] { "http:" };
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  5. okhttp/src/main/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> =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/validation/UriTypeValidator.java

                    boolean flag = false;
                    for (final String protocol : protocols) {
                        if (path.trim().startsWith(protocol.trim())) {
                            flag = true;
                            break;
                        }
                    }
                    if (!flag) {
                        return false;
                    }
                }
            }
            return true;
        }
    
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  7. okhttp/src/main/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()
        }
    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)
  8. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         *
         * @param protocols the protocols to use, in order of preference. If the list contains
         *     [Protocol.H2_PRIOR_KNOWLEDGE] then that must be the only protocol and HTTPS URLs will not
         *     be supported. Otherwise the list must contain [Protocol.HTTP_1_1]. The list must
         *     not contain null or [Protocol.HTTP_1_0].
         */
        fun protocols(protocols: List<Protocol>) =
          apply {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  9. okhttp/src/main/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()
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

      var connectionSpecs: List<ConnectionSpec> =
        listOf(
          ConnectionSpec.MODERN_TLS,
          ConnectionSpec.COMPATIBLE_TLS,
          ConnectionSpec.CLEARTEXT,
        )
      var protocols: List<Protocol> =
        listOf(
          Protocol.HTTP_1_1,
        )
      var handshakeCertificates: HandshakeCertificates = localhost()
      var sslSocketFactory: SSLSocketFactory? = handshakeCertificates.sslSocketFactory()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top