Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for Graves (0.15 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

        opcode = b0 and B0_MASK_OPCODE
        isFinalFrame = b0 and B0_FLAG_FIN != 0
        isControlFrame = b0 and OPCODE_FLAG_CONTROL != 0
    
        // Control frames must be final frames (cannot contain continuations).
        if (isControlFrame && !isFinalFrame) {
          throw ProtocolException("Control frames must be final.")
        }
    
        val reservedFlag1 = b0 and B0_FLAG_RSV1 != 0
        when (opcode) {
          OPCODE_TEXT, OPCODE_BINARY -> {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

       */
      private fun doReadTimeout() = !connection.client || sink.closed || sink.finished
    
      /**
       * A source that reads the incoming data frames of a stream. Although this class uses
       * synchronization to safely receive incoming data frames, it is not intended for use by multiple
       * readers.
       */
      inner class FramingSource internal constructor(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/flowcontrol/WindowCounter.kt

    class WindowCounter(
      val streamId: Int,
    ) {
      /** The total number of bytes consumed. */
      var total: Long = 0L
        private set
    
      /** The total number of bytes acknowledged by outgoing `WINDOW_UPDATE` frames. */
      var acknowledged: Long = 0L
        private set
    
      val unacknowledged: Long
        @Synchronized get() = total - acknowledged
    
      @Synchronized
      fun update(
        total: Long = 0,
        acknowledged: Long = 0,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       */
      fun useHttps(sslSocketFactory: SSLSocketFactory) {
        this.sslSocketFactory = sslSocketFactory
      }
    
      /**
       * Configure the server to not perform SSL authentication of the client. This leaves
       * authentication to another layer such as in an HTTP cookie or header. This is the default and
       * most common configuration.
       */
      fun noClientAuth() {
        this.clientAuth = CLIENT_AUTH_NONE
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

        frame.writeByte(FLAG_NONE)
        frame.writeInt(expectedStreamId and 0x7fffffff)
        frame.write(headerBlock, Http2.INITIAL_MAX_FRAME_SIZE.toLong())
    
        // Write the continuation frame, specifying no more frames are expected.
        writeMedium(frame, headerBlock.size.toInt())
        frame.writeByte(Http2.TYPE_CONTINUATION)
        frame.writeByte(FLAG_END_HEADERS)
        frame.writeInt(expectedStreamId and 0x7fffffff)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/Stream.kt

     * limitations under the License.
     */
    package mockwebserver3
    
    import okhttp3.ExperimentalOkHttpApi
    import okio.BufferedSink
    import okio.BufferedSource
    
    /**
     * A bidirectional sequence of data frames exchanged between client and server.
     */
    @ExperimentalOkHttpApi
    interface Stream {
      val requestBody: BufferedSource
      val responseBody: BufferedSink
    
      /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/http2/FrameLogTest.kt

          .isEqualTo("<< 0x00000003   226 DATA          END_STREAM")
        assertThat(frameLog(false, 0, 8, TYPE_GOAWAY, FLAG_NONE))
          .isEqualTo(">> 0x00000000     8 GOAWAY        ")
      }
    
      /** Window update frames have special formatting.  */
      @Test
      fun windowUpdateFrames() {
        assertThat(frameLogWindowUpdate(false, 0, 4, Int.MAX_VALUE.toLong()))
          .isEqualTo(">> 0x00000000     4 WINDOW_UPDATE 2147483647")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

    import okhttp3.internal.http2.Header.Companion.TARGET_SCHEME_UTF8
    import okhttp3.internal.immutableListOf
    import okio.Sink
    import okio.Source
    
    /** Encode requests and responses using HTTP/2 frames. */
    class Http2ExchangeCodec(
      client: OkHttpClient,
      override val carrier: Carrier,
      private val chain: RealInterceptorChain,
      private val http2Connection: Http2Connection,
    ) : ExchangeCodec {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertThat(data2.streamId).isEqualTo(3)
        assertArrayEquals("fghi".toByteArray(), data2.data)
      }
    
      /**
       * Confirm that we account for discarded data frames. It's possible that data frames are in-flight
       * just prior to us canceling a stream.
       */
      @Test fun discardedDataFramesAreCounted() {
        // Write the mocking script.
        peer.sendFrame().settings(Settings())
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/ConnectionSpec.kt

    import okhttp3.internal.effectiveCipherSuites
    import okhttp3.internal.hasIntersection
    import okhttp3.internal.indexOf
    import okhttp3.internal.intersect
    
    /**
     * Specifies configuration for the socket connection that HTTP traffic travels through. For `https:`
     * URLs, this includes the TLS version and cipher suites to use when negotiating a secure
     * connection.
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 13.4K bytes
    - Viewed (0)
Back to top