Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for upgrades (0.03 sec)

  1. android/guava/src/com/google/common/annotations/Beta.java

     * that it is not "API-frozen."
     *
     * <p>It is generally safe for <i>applications</i> to depend on beta APIs, at the cost of some extra
     * work during upgrades. However it is generally inadvisable for <i>libraries</i> (which get
     * included on users' CLASSPATHs, outside the library developers' control) to do so.
     *
     * @author Kevin Bourrillion
     */
    @Retention(RetentionPolicy.CLASS)
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Dec 16 19:54:45 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/annotations/Beta.java

     * that it is not "API-frozen."
     *
     * <p>It is generally safe for <i>applications</i> to depend on beta APIs, at the cost of some extra
     * work during upgrades. However it is generally inadvisable for <i>libraries</i> (which get
     * included on users' CLASSPATHs, outside the library developers' control) to do so.
     *
     * @author Kevin Bourrillion
     */
    @Retention(RetentionPolicy.CLASS)
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Dec 16 19:54:45 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

          }
    
          val isUpgradeResponse =
            isUpgradeCode &&
              "upgrade".equals(response.header("Connection"), ignoreCase = true)
    
          response =
            when {
              // This is an HTTP/1 upgrade. (This case includes web socket upgrades.)
              isUpgradeRequest && isUpgradeResponse -> {
                response
                  .newBuilder()
                  .body(
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Oct 30 13:46:58 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt

      }
    
      @Test
      fun upgradeHttps() {
        enableTls(Protocol.HTTP_1_1)
        upgrade()
      }
    
      @Test
      fun upgradeRefusedByServer() {
        server.enqueue(MockResponse(body = "normal request"))
        val requestWithUpgrade =
          Request
            .Builder()
            .url(server.url("/"))
            .header("Connection", "upgrade")
            .build()
        client.newCall(requestWithUpgrade).execute().use { response ->
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/HeadersRequestTest.kt

      }
    
      @Test fun http2HeadersListDropsForbiddenHeadersHttp2() {
        val request =
          Request
            .Builder()
            .url("http://square.com/")
            .header("Connection", "upgrade")
            .header("Upgrade", "websocket")
            .header("Host", "square.com")
            .header("TE", "gzip")
            .build()
        val expected =
          headerEntries(
            ":method",
            "GET",
            ":path",
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  6. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

        assertThat(recorded.headers["Connection"]).isEqualTo("Upgrade, HTTP2-Settings")
        if (PlatformVersion.majorVersion < 19) {
          assertThat(recorded.headers["Content-Length"]).isEqualTo("0")
        }
        assertThat(recorded.headers["HTTP2-Settings"]).isNotNull()
        assertThat(recorded.headers["Upgrade"]).isEqualTo("h2c") // HTTP/2 over plaintext!
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

       * MoreExecutors#listeningDecorator( java.util.concurrent.ExecutorService)}, {@link
       * ListenableFutureTask}, {@link AbstractFuture}, and other utilities over creating plain {@code
       * Future} instances to be upgraded to {@code ListenableFuture} after the fact.
       */
      public static <V extends @Nullable Object> ListenableFuture<V> listenInPoolThread(
          Future<V> future) {
        if (future instanceof ListenableFuture) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

        private const val UPGRADE = "upgrade"
    
        /** See http://tools.ietf.org/html/draft-ietf-httpbis-http2-09#section-8.1.3. */
        private val HTTP_2_SKIPPED_REQUEST_HEADERS =
          immutableListOf(
            CONNECTION,
            HOST,
            KEEP_ALIVE,
            PROXY_CONNECTION,
            TE,
            TRANSFER_ENCODING,
            ENCODING,
            UPGRADE,
            TARGET_METHOD_UTF8,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Jul 29 21:11:09 UTC 2025
    - 7K bytes
    - Viewed (0)
  9. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

          this.settings = settings
        }
    
      fun withWebSocketUpgrade(listener: WebSocketListener) =
        apply {
          status = "HTTP/1.1 101 Switching Protocols"
          setHeader("Connection", "Upgrade")
          setHeader("Upgrade", "websocket")
          body = null
          webSocketListener = listener
        }
    
      override fun toString(): String = status
    
      companion object {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 7.1K bytes
    - Viewed (1)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Protocol.kt

       * Servers that enforce this may send an exception message including the string
       * `INADEQUATE_SECURITY`.
       */
      HTTP_2("h2"),
    
      /**
       * Cleartext HTTP/2 with no "upgrade" round trip. This option requires the client to have prior
       * knowledge that the server supports cleartext HTTP/2.
       *
       * See also [Starting HTTP/2 with Prior Knowledge][rfc_7540_34].
       *
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jun 23 18:58:57 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top