Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for connectionPreface (0.38 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

          }
        } else {
          // The server reads the CONNECTION_PREFACE byte string.
          val connectionPreface = source.readByteString(CONNECTION_PREFACE.size.toLong())
          if (logger.isLoggable(FINE)) logger.fine(format("<< CONNECTION ${connectionPreface.hex()}"))
          if (CONNECTION_PREFACE != connectionPreface) {
            throw IOException("Expected a connection header but was ${connectionPreface.utf8()}")
          }
        }
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

      @Throws(IOException::class)
      fun connectionPreface() {
        this.withLock {
          if (closed) throw IOException("closed")
          if (!client) return // Nothing to write; servers don't send connection headers!
          if (logger.isLoggable(FINE)) {
            logger.fine(format(">> CONNECTION ${CONNECTION_PREFACE.hex()}"))
          }
          sink.write(CONNECTION_PREFACE)
          sink.flush()
        }
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

       */
      @Throws(IOException::class)
      @JvmOverloads
      fun start(sendConnectionPreface: Boolean = true) {
        if (sendConnectionPreface) {
          writer.connectionPreface()
          writer.settings(okHttpSettings)
          val windowSize = okHttpSettings.initialWindowSize
          if (windowSize != DEFAULT_INITIAL_WINDOW_SIZE) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2.kt

     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    import okhttp3.internal.format
    import okio.ByteString.Companion.encodeUtf8
    
    object Http2 {
      @JvmField
      val CONNECTION_PREFACE = "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n".encodeUtf8()
    
      /** The initial max frame size, applied independently writing to, or reading from the peer. */
      const val INITIAL_MAX_FRAME_SIZE = 0x4000 // 16384
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top