Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for flag (0.12 sec)

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

      ) {
        this.withLock {
          if (closed) throw IOException("closed")
          var flags = FLAG_NONE
          if (outFinished) flags = flags or FLAG_END_STREAM
          dataFrame(streamId, flags, source, byteCount)
        }
      }
    
      @Throws(IOException::class)
      fun dataFrame(
        streamId: Int,
        flags: Int,
        buffer: Buffer?,
        byteCount: Int,
      ) {
        frameHeader(
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

    import okhttp3.internal.http2.Http2.CONNECTION_PREFACE
    import okhttp3.internal.http2.Http2.FLAG_ACK
    import okhttp3.internal.http2.Http2.FLAG_COMPRESSED
    import okhttp3.internal.http2.Http2.FLAG_END_HEADERS
    import okhttp3.internal.http2.Http2.FLAG_END_STREAM
    import okhttp3.internal.http2.Http2.FLAG_PADDED
    import okhttp3.internal.http2.Http2.FLAG_PRIORITY
    import okhttp3.internal.http2.Http2.INITIAL_MAX_FRAME_SIZE
    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)
  3. okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt

        data.write("ca00".decodeHex()) // Empty pong, flag 1 set.
        assertFailsWith<ProtocolException> {
          clientReader.processNextFrame()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Unexpected rsv1 flag")
        }
      }
    
      @Test fun reservedFlag1IsUnsupportedForControlFrames() {
        data.write("ca00".decodeHex()) // Empty pong, flag 1 set.
        assertFailsWith<ProtocolException> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

    import okhttp3.internal.toHexString
    import okhttp3.internal.ws.WebSocketProtocol.B0_FLAG_FIN
    import okhttp3.internal.ws.WebSocketProtocol.B0_FLAG_RSV1
    import okhttp3.internal.ws.WebSocketProtocol.B0_FLAG_RSV2
    import okhttp3.internal.ws.WebSocketProtocol.B0_FLAG_RSV3
    import okhttp3.internal.ws.WebSocketProtocol.B0_MASK_OPCODE
    import okhttp3.internal.ws.WebSocketProtocol.B1_FLAG_MASK
    import okhttp3.internal.ws.WebSocketProtocol.B1_MASK_LENGTH
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_4x.md

     *  Fix: Honor `RequestBody.isOneShot()` in `HttpLoggingInterceptor`.
    
    
    ## Version 4.2.2
    
    _2019-10-06_
    
     *  Fix: When closing a canceled HTTP/2 stream, don't send the `END_STREAM` flag. This could cause
        the server to incorrectly interpret the stream as having completed normally. This is most useful
        when a request body needs to cancel its own call.
    
    
    ## Version 4.2.1
    
    _2019-10-02_
    
    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)
  6. okhttp/src/main/kotlin/okhttp3/Cookie.kt

       * it should be interpreted as a pattern. This flag will be false if its `Set-Cookie` header
       * included a `domain` attribute.
       *
       * For example, suppose the cookie's domain is `example.com`. If this flag is true it matches
       * **only** `example.com`. If this flag is false it matches `example.com` and all subdomains
    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)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

       *
       * @param associatedStreamId the stream that triggered the sender to create this stream.
       * @param out true to create an output stream that we can use to send data to the remote peer.
       *     Corresponds to `FLAG_FIN`.
       */
      @Throws(IOException::class)
      fun pushStream(
        associatedStreamId: Int,
        requestHeaders: List<Header>,
        out: Boolean,
      ): Http2Stream {
    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. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

        }
      }
    
      /**
       * Sends a reply to an incoming stream.
       *
       * @param outFinished true to eagerly finish the output stream to send data to the remote peer.
       *     Corresponds to `FLAG_FIN`.
       * @param flushHeaders true to force flush the response headers. This should be true unless the
       *     response body exists and will be written immediately.
       */
      @Throws(IOException::class)
    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)
  9. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

    import okhttp3.internal.EMPTY_BYTE_ARRAY
    import okhttp3.internal.http2.Http2.FLAG_COMPRESSED
    import okhttp3.internal.http2.Http2.FLAG_END_HEADERS
    import okhttp3.internal.http2.Http2.FLAG_END_STREAM
    import okhttp3.internal.http2.Http2.FLAG_NONE
    import okhttp3.internal.http2.Http2.FLAG_PADDED
    import okhttp3.internal.http2.Http2.FLAG_PRIORITY
    import okhttp3.internal.http2.Http2.TYPE_GOAWAY
    import okio.Buffer
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

            }
            return entriesToEvict
          }
    
          /**
           * Read `byteCount` bytes of headers from the source stream. This implementation does not
           * propagate the never indexed flag of a header.
           */
          @Throws(IOException::class)
          fun readHeaders() {
            while (!source.exhausted()) {
              val b = source.readByte() and 0xff
              when {
                b == 0x80 -> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (1)
Back to top