Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for Settings (0.19 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        @Throws(IOException::class)
        private fun writeResponse(
          stream: Http2Stream,
          request: RecordedRequest,
          response: MockResponse,
        ) {
          val settings = response.settings
          stream.connection.setSettings(settings)
    
          if (response.socketPolicy === NoResponse) {
            return
          }
    
          val bodyDelayNanos = response.bodyDelayNanos
          val trailers = response.trailers
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        // Write the mocking script.
        val settings1 = Settings()
        settings1[Settings.HEADER_TABLE_SIZE] = 10000
        settings1[Settings.INITIAL_WINDOW_SIZE] = 20000
        settings1[Settings.MAX_FRAME_SIZE] = 30000
        peer.sendFrame().settings(settings1)
        peer.acceptFrame() // ACK SETTINGS
        val settings2 = Settings()
        settings2[Settings.INITIAL_WINDOW_SIZE] = 40000
        settings2[Settings.MAX_FRAME_SIZE] = 50000
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

     *
     * Use `new OkHttpClient()` to create a shared instance with the default settings:
     *
     * ```java
     * // The singleton HTTP client.
     * public final OkHttpClient client = new OkHttpClient();
     * ```
     *
     * Or use `new OkHttpClient.Builder()` to create a shared instance with custom settings:
     *
     * ```java
     * // The singleton HTTP client.
     * public final OkHttpClient client = new OkHttpClient.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

          }
          connection.flush()
          cancelStreamIfNecessary()
        }
      }
    
      companion object {
        internal const val EMIT_BUFFER_SIZE = 16384L
      }
    
      /** [delta] will be negative if a settings frame initial window is smaller than the last. */
      fun addBytesToWriteWindow(delta: Long) {
        writeBytesMaximum += delta
        if (delta > 0L) {
          condition.signalAll()
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  5. build.gradle.kts

      configure<AnimalSnifferExtension> {
        annotation = "okhttp3.internal.SuppressSignatureCheck"
        sourceSets = listOf(project.sourceSets["main"])
      }
    
      val signature: Configuration by configurations.getting
      dependencies {
        // No dependency requirements for testing-support.
        if (project.name == "okhttp-testing-support") return@dependencies
    
        if (project.name == "mockwebserver3-junit5") {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:32:42 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  6. .devcontainer/devcontainer.json

      "image": "mcr.microsoft.com/devcontainers/java:17-bookworm",
      "features": {
          "ghcr.io/devcontainers/features/java:1": {
              "version": "17"
          }
      },
      "customizations": {
          "vscode": {
              "settings": {
                  "java.server.launchMode": "Standard"
              },
              "extensions": [
                  "vscjava.vscode-java-pack",
                  "vscjava.vscode-gradle"
              ]
          }
      }
    Json
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Apr 14 14:24:05 GMT 2024
    - 429 bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

        // Do blocking calls to plan a route for a new connection.
        val connect = planConnect()
    
        // Now that we have a set of IP addresses, make another attempt at getting a connection from
        // the pool. We have a better chance of matching thanks to connection coalescing.
        val pooled2 = planReusePooledConnection(connect, connect.routes)
        if (pooled2 != null) return pooled2
    
    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)
  8. okhttp/src/main/kotlin/okhttp3/Cookie.kt

       *    potentially-destructive navigation. This is the default value.
       *
       *  - "None": the cookie is always sent. The "Secure" attribute must also be set when setting this
       *    value.
       */
      @get:JvmName("sameSite")
      val sameSite: String?,
    ) {
      /**
       * Returns true if this cookie should be included on a request to [url]. In addition to this
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CacheTest.kt

      @Test
      fun clientPrematureDisconnectWithNoLengthHeaders() {
        testClientPrematureDisconnect(TransferKind.END_OF_STREAM)
      }
    
      private fun testClientPrematureDisconnect(transferKind: TransferKind) {
        // Setting a low transfer speed ensures that stream discarding will time out.
        val builder =
          MockResponse.Builder()
            .throttleBody(6, 1, TimeUnit.SECONDS)
    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)
Back to top