Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 157 for Fong (0.22 sec)

  1. docs/changelogs/changelog_4x.md

     *  New: `OkHttpClient.Builder.minWebSocketMessageToCompress()` configures a threshold for
        compressing outbound web socket messages. Configure this with 0L to always compress outbound
        messages and `Long.MAX_VALUE` to never compress outbound messages. The default is 1024L which
        compresses messages of size 1 KiB and larger. (Inbound messages are compressed or not based on
        the web socket server's configuration.)
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketWriter.kt

    import okhttp3.internal.ws.WebSocketProtocol.OPCODE_CONTROL_PING
    import okhttp3.internal.ws.WebSocketProtocol.OPCODE_CONTROL_PONG
    import okhttp3.internal.ws.WebSocketProtocol.PAYLOAD_BYTE_MAX
    import okhttp3.internal.ws.WebSocketProtocol.PAYLOAD_LONG
    import okhttp3.internal.ws.WebSocketProtocol.PAYLOAD_SHORT
    import okhttp3.internal.ws.WebSocketProtocol.PAYLOAD_SHORT_MAX
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

        override val timestampNs: Long,
        override val call: Call,
      ) : CallEvent()
    
      data class RequestHeadersStart(
        override val timestampNs: Long,
        override val call: Call,
      ) : CallEvent()
    
      data class RequestHeadersEnd(
        override val timestampNs: Long,
        override val call: Call,
        val headerLength: Long,
      ) : CallEvent() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

      }
    
      fun writeBigInteger(value: BigInteger) {
        sink().write(value.toByteArray())
      }
    
      fun writeLong(v: Long) {
        val sink = sink()
    
        val lengthBitCount: Int =
          if (v < 0L) {
            65 - java.lang.Long.numberOfLeadingZeros(v xor -1L)
          } else {
            65 - java.lang.Long.numberOfLeadingZeros(v)
          }
    
        val lengthByteCount = (lengthBitCount + 7) / 8
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/cache2/FileOperator.kt

    internal class FileOperator(
      private val fileChannel: FileChannel,
    ) {
      /** Write [byteCount] bytes from [source] to the file at [pos]. */
      @Throws(IOException::class)
      fun write(
        pos: Long,
        source: Buffer,
        byteCount: Long,
      ) {
        if (byteCount < 0L || byteCount > source.size) {
          throw IndexOutOfBoundsException()
        }
        var mutablePos = pos
        var mutableByteCount = byteCount
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

        private val contentLength: Long,
      ) : ForwardingSink(delegate) {
        private var completed = false
        private var bytesReceived = 0L
        private var closed = false
    
        @Throws(IOException::class)
        override fun write(
          source: Buffer,
          byteCount: Long,
        ) {
          check(!closed) { "closed" }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.2K bytes
    - Viewed (2)
  7. okhttp/src/test/java/okhttp3/ResponseBodyTest.kt

        assertThat(body.bytes()).isEqualTo(text)
      }
    }
    
    abstract class ForwardingSource(
      val delegate: Source,
    ) : Source {
      override fun read(
        sink: Buffer,
        byteCount: Long,
      ): Long = delegate.read(sink, byteCount)
    
      override fun timeout() = delegate.timeout()
    
      override fun close() = delegate.close()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4K bytes
    - Viewed (0)
  8. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        var throttleBytesPerPeriod: Long = mockResponse.throttleBytesPerPeriod
        throttleBytesPerPeriod = mockResponse.throttleBytesPerPeriod
        var throttlePeriod: Long = mockResponse.getThrottlePeriod(TimeUnit.SECONDS)
        mockResponse = mockResponse.setBodyDelay(0L, TimeUnit.SECONDS)
        val bodyDelay: Long = mockResponse.getBodyDelay(TimeUnit.SECONDS)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.3K bytes
    - Viewed (1)
  9. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/RecordedRequest.kt

    import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    import okhttp3.TlsVersion
    import okio.Buffer
    
    class RecordedRequest {
      val requestLine: String
      val headers: Headers
      val chunkSizes: List<Int>
      val bodySize: Long
      val body: Buffer
      val sequenceNumber: Int
      val failure: IOException?
      val method: String?
      val path: String?
      val handshake: Handshake?
      val requestUrl: HttpUrl?
    
      @get:JvmName("-deprecated_utf8Body")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (2)
  10. okhttp/src/main/kotlin/okhttp3/internal/NativeImageTestsAccessors.kt

    import okhttp3.internal.connection.RealConnection
    import okio.FileSystem
    import okio.Path
    
    internal fun buildCache(
      file: Path,
      maxSize: Long,
      fileSystem: FileSystem,
    ): Cache {
      return Cache(fileSystem, file, maxSize)
    }
    
    internal var RealConnection.idleAtNsAccessor: Long
      get() = idleAtNs
      set(value) {
        idleAtNs = value
      }
    
    internal val Response.exchangeAccessor: Exchange?
      get() = this.exchange
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 1.3K bytes
    - Viewed (0)
Back to top