Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for small (0.15 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

     *
     * As bytes are returned from upstream they are written to a local file. Downstream sources read
     * from this file as necessary.
     *
     * This class also keeps a small buffer of bytes recently read from upstream. This is intended to
     * save a small amount of file I/O and data copying.
     */
    class Relay private constructor(
      /**
       * Read/write persistence of the upstream source and its metadata. Its layout is as follows:
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/UtilTest.kt

          },
        ).hasMessage("timeout < 0")
        assertThat(
          assertThrows<IllegalArgumentException> {
            checkDuration("timeout", 1, TimeUnit.NANOSECONDS)
          },
        ).hasMessage("timeout too small")
        assertThat(
          assertThrows<IllegalArgumentException> {
            checkDuration(
              "timeout",
              1L + Int.MAX_VALUE.toLong(),
              TimeUnit.MILLISECONDS,
            )
          },
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        ).isTrue()
      }
    
      internal enum class WriteKind {
        BYTE_BY_BYTE,
        SMALL_BUFFERS,
        LARGE_BUFFERS,
      }
    
      @Test
      fun chunkedUpload_byteByByte() {
        doUpload(TransferKind.CHUNKED, WriteKind.BYTE_BY_BYTE)
      }
    
      @Test
      fun chunkedUpload_smallBuffers() {
        doUpload(TransferKind.CHUNKED, WriteKind.SMALL_BUFFERS)
      }
    
      @Test
      fun chunkedUpload_largeBuffers() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  4. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        assertThat(adapter.fromDer(bytes)).isNull()
      }
    
      /** Make the claimed length of a nested object larger than the enclosing object. */
      @Test fun `large object inside small object`() {
        val bytes = "301b300d06092a864886f70d010101050003847fffffff000504030201".decodeHex()
        assertFailsWith<ProtocolException> {
          CertificateAdapters.subjectPublicKeyInfo.fromDer(bytes)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

      require(millis != 0L || duration <= 0L) { "$name too small" }
      return millis.toInt()
    }
    
    internal fun checkDuration(
      name: String,
      duration: Duration,
    ): Int {
      check(!duration.isNegative()) { "$name < 0" }
      val millis = duration.inWholeMilliseconds
      require(millis <= Integer.MAX_VALUE) { "$name too large" }
      require(millis != 0L || !duration.isPositive()) { "$name too small" }
      return millis.toInt()
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

      return result.toTypedArray()
    }
    
    /**
     * Returns true if there is an element in this array that is also in [other]. This method terminates
     * if any intersection is found. The sizes of both arguments are assumed to be so small, and the
     * likelihood of an intersection so great, that it is not worth the CPU cost of sorting or the
     * memory cost of hashing.
     */
    internal fun Array<String>.hasIntersection(
      other: Array<String>?,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_4x.md

     *  Fix: Don't lose HTTP/2 flow control bytes when incoming data races with a stream close. If this
        happened enough then eventually the connection would stall.
    
     *  Fix: Acknowledge and apply inbound HTTP/2 settings atomically. Previously we had a race where we
        could use new flow control capacity before acknowledging it, causing strict HTTP/2 servers to
        fail the call.
    
    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)
  8. README.md

    
    Requirements
    ------------
    
    OkHttp works on Android 5.0+ (API level 21+) and Java 8+.
    
    OkHttp depends on [Okio][okio] for high-performance I/O and the [Kotlin standard library][kotlin]. Both are small libraries with strong backward-compatibility.
    
    We highly recommend you keep OkHttp up-to-date. As with auto-updating web browsers, staying current
    with HTTPS clients is an important defense against potential security problems. [We
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt

     *    will be used to authenticate the client's certificate chain. Typically this is not the same
     *    set of root certificates used in server authentication. Instead it will be a small set of
     *    roots private to an organization or service.
     */
    class HandshakeCertificates private constructor(
      @get:JvmName("keyManager") val keyManager: X509KeyManager,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.5K bytes
    - Viewed (1)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

      internal inner class FramingSink(
        /** True if either side has cleanly shut down this stream. We shall send no more bytes. */
        var finished: Boolean = false,
      ) : Sink {
        /**
         * Buffer of outgoing data. This batches writes of small writes into this sink as larges frames
         * written to the outgoing connection. Batching saves the (small) framing overhead.
         */
        private val sendBuffer = Buffer()
    
    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)
Back to top