Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for Settings (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        stream.close(ErrorCode.REFUSED_STREAM, null)
      }
    
      /** When settings are received, adjust the allocation limit. */
      override fun onSettings(
        connection: Http2Connection,
        settings: Settings,
      ) {
        lock.withLock {
          val oldLimit = allocationLimit
          allocationLimit = settings.getMaxConcurrentStreams()
    
          if (allocationLimit < oldLimit) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

          }
    
        /**
         * When [protocols][MockWebServer.protocols] include [HTTP_2][okhttp3.Protocol], this pushes
         * [settings] before writing the response.
         */
        fun settings(settings: Settings) =
          apply {
            this.settings.clear()
            this.settings.merge(settings)
          }
    
        /**
         * Attempts to perform a web socket upgrade on the connection.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 13.3K bytes
    - Viewed (1)
  3. docs/changelogs/changelog_4x.md

    Please be considerate of your servers and their operators as you roll out this release. Compression
    saves bandwidth but it costs CPU and memory! If you run into a problem you may need to adjust or
    disable the `permessage-deflate` compression settings on your server.
    
    Note that OkHttp won't use compression when sending messages smaller than 1 KiB.
    
     *  Fix: Don't crash when the URL hostname contains an underscore on Android.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

            }
    
            // SETTINGS_MAX_HEADER_LIST_SIZE
            6 -> { // Advisory only, so ignored.
            }
    
            // Must ignore setting with unknown id.
            else -> {
            }
          }
          settings[id] = value
        }
        handler.settings(false, settings)
      }
    
      @Throws(IOException::class)
      private fun readPushPromise(
        handler: Handler,
        length: Int,
        flags: Int,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        realConnection: RealConnection,
        maxConcurrentStreams: Int,
      ): Http2Connection {
        // Write the mocking script.
        val settings1 = Settings()
        settings1[Settings.MAX_CONCURRENT_STREAMS] = maxConcurrentStreams
        peer.sendFrame().settings(settings1)
        peer.acceptFrame() // ACK
        peer.sendFrame().ping(false, 2, 0)
        peer.acceptFrame() // PING
        peer.play()
    
        // Play it back.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

        }
      }
    
      /** Write okhttp's settings to the peer. */
      @Throws(IOException::class)
      fun settings(settings: Settings) {
        this.withLock {
          if (closed) throw IOException("closed")
          frameHeader(
            streamId = 0,
            length = settings.size() * 6,
            type = TYPE_SETTINGS,
            flags = FLAG_NONE,
          )
          for (i in 0 until Settings.COUNT) {
            if (!settings.isSet(i)) continue
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

      }
    
      /** Merges [settings] into this peer's settings and sends them to the remote peer. */
      @Throws(IOException::class)
      fun setSettings(settings: Settings) {
        writer.withLock {
          this.withLock {
            if (isShutdown) {
              throw ConnectionShutdownException()
            }
            okHttpSettings.merge(settings)
          }
          writer.settings(settings)
        }
      }
    
    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)
  8. mockwebserver/api/mockwebserver3.api

    	public final fun setStatus (Ljava/lang/String;)V
    	public final fun setStreamHandler (Lmockwebserver3/StreamHandler;)V
    	public final fun setWebSocketListener (Lokhttp3/WebSocketListener;)V
    	public final fun settings (Lokhttp3/internal/http2/Settings;)Lmockwebserver3/MockResponse$Builder;
    	public final fun socketPolicy (Lmockwebserver3/SocketPolicy;)Lmockwebserver3/MockResponse$Builder;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 03 21:59:45 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        var pushPromises: List<PushPromise> = mockResponse.pushPromises
        pushPromises = mockResponse.pushPromises
        mockResponse = mockResponse.withSettings(Settings())
        var settings: Settings = mockResponse.settings
        settings = mockResponse.settings
        mockResponse =
          mockResponse.withWebSocketUpgrade(
            object : WebSocketListener() {
            },
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  10. mockwebserver-deprecated/api/mockwebserver.api

    	public final fun getHeadersDelay (Ljava/util/concurrent/TimeUnit;)J
    	public final fun getHttp2ErrorCode ()I
    	public final fun getPushPromises ()Ljava/util/List;
    	public final fun getSettings ()Lokhttp3/internal/http2/Settings;
    	public final fun getSocketPolicy ()Lokhttp3/mockwebserver/SocketPolicy;
    	public final fun getStatus ()Ljava/lang/String;
    	public final fun getThrottleBytesPerPeriod ()J
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jul 22 12:28:51 GMT 2023
    - 10.2K bytes
    - Viewed (0)
Back to top