Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 54 for releases (0.18 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        closeWebSockets(webSocket, server)
      }
    
      /**
       * We had a bug where web socket connections were leaked if the HTTP connection upgrade was not
       * successful. This test confirms that connections are released back to the connection pool!
       * https://github.com/square/okhttp/issues/4258
       */
      @Test
      @Throws(Exception::class)
      fun webSocketConnectionIsReleased() {
        // This test assumes HTTP/1.1 pooling semantics.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  2. okhttp-android/src/main/baseline-prof.txt

    HSPLandroidx/lifecycle/LifecycleCoroutineScopeImpl;->getCoroutineContext()Lkotlin/coroutines/CoroutineContext;
    HSPLandroidx/lifecycle/LifecycleCoroutineScopeImpl;->getLifecycle$lifecycle_runtime_ktx_release()Landroidx/lifecycle/Lifecycle;
    HSPLandroidx/lifecycle/LifecycleCoroutineScopeImpl;->onStateChanged(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Lifecycle$Event;)V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

        assertThat(response.header("Content-Length")).isEqualTo("3")
        assertThat(response.header("etag")).isEqualTo("foo")
      }
    
      /** Exercise the cache format in OkHttp 2.7 and all earlier releases.  */
      @Test
      fun testGoldenCacheHttpsResponseOkHttp27() {
        val url = server.url("/")
        val urlKey = key(url)
        val prefix = get().getPrefix()
        val entryMetadata =
          """
          $url
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  4. docs/recipes.md

    Typically HTTP headers work like a `Map<String, String>`: each field has one value or none. But some headers permit multiple values, like Guava's [Multimap](https://guava.dev/releases/23.0/api/docs/com/google/common/collect/Multimap.html). For example, it's legal and common for an HTTP response to supply multiple `Vary` headers. OkHttp's APIs attempt to make both cases comfortable.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Feb 18 08:52:22 GMT 2022
    - 40.2K bytes
    - Viewed (1)
  5. okhttp/src/main/kotlin/okhttp3/WebSocketListener.kt

        webSocket: WebSocket,
        code: Int,
        reason: String,
      ) {
      }
    
      /**
       * Invoked when both peers have indicated that no more messages will be transmitted and the
       * connection has been successfully released. No further calls to this listener will be made.
       */
      open fun onClosed(
        webSocket: WebSocket,
        code: Int,
        reason: String,
      ) {
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

            }
          }
    
        // If the call's connection wasn't released, reuse it. We don't call connectionAcquired() here
        // because we already acquired it.
        if (connectionUser.candidateConnection() != null) {
          check(toClose == null)
          return ReusePlan(candidate)
        }
    
        // The call's connection was released.
        toClose?.closeQuietly()
        connectionUser.connectionReleased(candidate)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  7. test_docs.sh

    # It requires Python to run.
    # Install the packages with the following command:
    # pip install mkdocs mkdocs-material mkdocs-redirects
    
    set -ex
    
    # Test generating the javadoc jars
    ./gradlew publishToMavenLocal -DRELEASE_SIGNING_ENABLED=false
    
    # Generate the API docs
    ./gradlew dokkaHtmlMultiModule
    
    mv ./build/dokka/htmlMultiModule docs/4.x
    
    # Copy in special files that GitHub wants in the project root.
    Shell Script
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:52:16 GMT 2024
    - 718 bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

          }
        }
    
        // Close the writer to release its resources (such as deflaters).
        ignoreIoExceptions {
          writer.close()
        }
    
        // Close the socket to break out the reader thread, which will clean up after itself.
        ignoreIoExceptions {
          socket.close()
        }
    
        // Release the threads.
        writerQueue.shutdown()
        pushQueue.shutdown()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

          listener.onClosed(this, code, reason!!)
        }
    
        readerToClose?.closeQuietly()
        streamsToClose?.closeQuietly()
      }
    
      /** For testing: force this web socket to release its threads. */
      @Throws(InterruptedException::class)
      fun tearDown() {
        taskQueue.shutdown()
        taskQueue.idleLatch().await(10, TimeUnit.SECONDS)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  10. android-test-app/build.gradle.kts

    @file:Suppress("UnstableApiUsage")
    
    plugins {
      id("com.android.application")
      id("kotlin-android")
    }
    
    android {
      compileSdk = 34
    
      namespace = "okhttp.android.testapp"
    
      testBuildType = "release"
    
      defaultConfig {
        minSdk = 21
        targetSdk = 34
        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
      }
    
      compileOptions {
        targetCompatibility(JavaVersion.VERSION_11)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 23 14:46:51 GMT 2023
    - 1.2K bytes
    - Viewed (0)
Back to top