Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for alpn (0.16 sec)

  1. buildSrc/src/main/kotlin/AlpnVersions.kt

        in 191..242 -> "8.1.13.v20181017"
        else -> null
      }
    }
    
    /**
     * Returns the alpn-boot version specific to this OpenJDK 8 JVM, or null if this is not a Java 8 VM.
     * https://github.com/xjdr/xio/blob/master/alpn-boot.gradle
     */
    fun alpnBootVersion(): String? {
      val version = System.getProperty("alpn.boot.version")
    
      if (version != null) {
        return version
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Jan 07 16:05:34 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

              }
            } else if (platformSystemProperty == JDK8_ALPN_PROPERTY) {
              if (!isAlpnBootEnabled()) {
                System.err.println("Warning: ALPN Boot not enabled")
              }
            } else if (platformSystemProperty == JDK8_PROPERTY) {
              if (isAlpnBootEnabled()) {
                System.err.println("Warning: ALPN Boot enabled unintentionally")
              }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt

          throw AssertionError("failed to set ALPN", e)
        } catch (e: IllegalAccessException) {
          throw AssertionError("failed to set ALPN", e)
        }
      }
    
      override fun afterHandshake(sslSocket: SSLSocket) {
        try {
          removeMethod.invoke(null, sslSocket)
        } catch (e: IllegalAccessException) {
          throw AssertionError("failed to remove ALPN", e)
        } catch (e: InvocationTargetException) {
    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)
  4. okhttp/src/main/kotlin/okhttp3/Protocol.kt

    /**
     * Protocols that OkHttp implements for [ALPN][ietf_alpn] selection.
     *
     * ## Protocol vs Scheme
     *
     * Despite its name, [java.net.URL.getProtocol] returns the [scheme][java.net.URI.getScheme] (http,
     * https, etc.) of the URL, not the protocol (http/1.1, spdy/3.1, etc.). OkHttp uses the word
     * *protocol* to identify how HTTP messages are framed.
     *
     * [ietf_alpn]: http://tools.ietf.org/html/draft-ietf-tls-applayerprotoneg
     */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:17:33 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  5. istioctl/pkg/authz/testdata/configdump.yaml

                  }
                 },
                 {
                  "name": "istio.alpn",
                  "typed_config": {
                   "@type": "type.googleapis.com/istio.envoy.config.filter.http.alpn.v2alpha1.FilterConfig",
                   "alpn_override": [
                    {
                     "alpn_override": [
                      "istio-http/1.0",
                      "istio",
                      "http/1.0"
    Others
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Jun 21 14:20:23 GMT 2023
    - 206.7K bytes
    - Viewed (2)
  6. android-test/src/androidTest/java/okhttp/android/test/alpn/AlpnOverrideTest.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp.android.test.alpn
    
    import android.os.Build
    import android.util.Log
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import javax.net.ssl.SSLSocket
    import javax.net.ssl.SSLSocketFactory
    import okhttp3.Call
    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)
  7. okhttp/src/main/kotlin/okhttp3/internal/platform/BouncyCastlePlatform.kt

        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
        } else {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/platform/android/BouncyCastleSocketAdapter.kt

      ) {
        // No TLS extensions if the socket class is custom.
        if (matchesSocket(sslSocket)) {
          val bcSocket = sslSocket as BCSSLSocket
    
          val sslParameters = bcSocket.parameters
    
          // Enable ALPN.
          sslParameters.applicationProtocols = Platform.alpnProtocolNames(protocols).toTypedArray()
    
          bcSocket.parameters = sslParameters
        }
      }
    
      companion object {
        val factory =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. build.gradle.kts

        environment("OKHTTP_ROOT", rootDir)
      }
    
      if (platform == "jdk8alpn") {
        // Add alpn-boot on Java 8 so we can use HTTP/2 without a stable API.
        val alpnBootVersion = alpnBootVersion()
        if (alpnBootVersion != null) {
          val alpnBootJar = configurations.detachedConfiguration(
            dependencies.create("org.mortbay.jetty.alpn:alpn-boot:$alpnBootVersion")
          ).singleFile
          tasks.withType<Test> {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 18 01:32:42 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  10. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientTest.kt

      }
    
      @Test fun get() {
        val request = HttpGet("https://google.com/robots.txt")
    
        httpClient.execute(request).use { response ->
          assertEquals(200, response.code)
          // TODO enable ALPN later
          assertEquals(HttpVersion.HTTP_1_1, response.version)
        }
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (0)
Back to top