Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 65 for carlet (1.03 sec)

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

       * enqueue messages followed by pongs, but this sends pongs followed by messages. Pongs are always
       * written in the order they were enqueued.
       *
       * If a frame cannot be sent - because there are none enqueued or because the web socket is not
       * connected - this does nothing and returns false. Otherwise this returns true and the caller
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

     * This is typical for Java but atypical for HTTP/2. This is motivated by exception transparency:
     * an [IOException] that was triggered by a certain caller can be caught and handled by that caller.
     */
    @Suppress("NAME_SHADOWING")
    class Http2Connection internal constructor(builder: Builder) : Closeable {
      internal val lock: ReentrantLock = ReentrantLock()
    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)
  3. docs/features/interceptors.md

    Interceptors can be chained. Suppose you have both a compressing interceptor and a checksumming interceptor: you'll need to decide whether data is compressed and then checksummed, or checksummed and then compressed. OkHttp uses lists to track interceptors, and interceptors are called in order.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 8.1K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockResponseBody.kt

    import okhttp3.ExperimentalOkHttpApi
    import okio.BufferedSink
    
    /**
     * The body of a [MockResponse].
     *
     * Unlike [okhttp3.ResponseBody], this interface is designed to be implemented by writers and not
     * called by readers.
     */
    @ExperimentalOkHttpApi
    interface MockResponseBody {
      /** The length of this response in bytes, or -1 if unknown. */
      val contentLength: Long
    
      @Throws(IOException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Dispatcher.kt

            call.cancel()
          }
        }
      }
    
      /**
       * Promotes eligible calls from [readyAsyncCalls] to [runningAsyncCalls] and runs them on the
       * executor service. Must not be called with synchronization because executing calls can call
       * into user code.
       *
       * @return true if the dispatcher is currently running calls.
       */
      private fun promoteAndExecute(): Boolean {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_2x.md

        return such malformed responses will now trigger a `ProtocolException` in
        the client.
    
     *  **WebSocketListener has incompatible changes.** The `onOpen()` method is now
        called on the reader thread, so implementations must return before further
        websocket messages will be delivered. The `onFailure()` method now includes
        an HTTP response if one was returned.
    
    ## Version 2.4.0-RC1
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        a.setString(0, "a1")
        assertThat(cache.remove("a")).isTrue()
        a.setString(1, "a2")
        a.commit()
        assertAbsent("a")
      }
    
      /**
       * Each read sees a snapshot of the file at the time read was called. This means that two reads of
       * the same key can see different data.
       */
      @ParameterizedTest
      @ArgumentsSource(FileSystemParamProvider::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

       */
      private fun findSectionsIndex(codePoint: Int): Int {
        val target = (codePoint and 0x1fff80) shr 7
        val offset =
          binarySearch(
            position = 0,
            limit = sections.length / 4,
          ) { index ->
            val entryIndex = index * 4
            val b0b1 = sections.read14BitInt(entryIndex)
            return@binarySearch target.compareTo(b0b1)
          }
    
        return when {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  9. mockwebserver-junit4/src/test/java/mockwebserver3/junit4/MockWebServerRuleTest.kt

        val rule = MockWebServerRule()
        val called = AtomicBoolean()
        val statement: Statement =
          rule.apply(
            object : Statement() {
              override fun evaluate() {
                called.set(true)
                rule.server.url("/").toUrl().openConnection().connect()
              }
            },
            Description.EMPTY,
          )
        statement.evaluate()
        assertThat(called.get()).isTrue()
        try {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (1)
  10. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/BootstrapDns.kt

    ) : Dns {
      @Throws(UnknownHostException::class)
      override fun lookup(hostname: String): List<InetAddress> {
        if (this.dnsHostname != hostname) {
          throw UnknownHostException(
            "BootstrapDns called for $hostname instead of $dnsHostname",
          )
        }
    
        return dnsServers
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (2)
Back to top