Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 227 for Chen (0.18 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

          }
    
          else -> {
            toEvict = null
            toEvictIdleAtNs = -1L
          }
        }
    
        when {
          toEvict != null -> {
            // We've chosen a connection to evict. Confirm it's still okay to be evicted, then close it.
            toEvict.withLock {
              if (toEvict.calls.isNotEmpty()) return 0L // No longer idle.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

     * at one time; if a value is not available to be edited then [edit] will return null.
     *
     *  * When an entry is being **created** it is necessary to supply a full set of values; the empty
     *    value should be used as a placeholder if necessary.
     *
     *  * When an entry is being **edited**, it is not necessary to supply data for every value; values
     *    default to their previous value.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

      @Throws(IOException::class)
      internal fun checkOutNotClosed() {
        when {
          sink.closed -> throw IOException("stream closed")
          sink.finished -> throw IOException("stream finished")
          errorCode != null -> throw errorException ?: StreamResetException(errorCode!!)
        }
      }
    
      /**
       * Like [Object.wait], but throws an [InterruptedIOException] when interrupted instead of the more
       * awkward [InterruptedException].
    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)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

    /**
     * Logs SSL keys to a log file, allowing Wireshark to decode traffic and be examined with http2
     * filter. The approach is to hook into JSSE log events for the messages between client and server
     * during handshake, and then take the agreed masterSecret from private fields of the session.
     *
     * Copy WireSharkKeyLoggerListener to your test code to use in development.
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (1)
  5. okhttp/src/main/kotlin/okhttp3/EventListener.kt

      ) {
      }
    
      /**
       * Invoked when a result is served from the cache. The Response provided is the top level
       * Response and normal event sequences will not be received.
       *
       * This event will only be received when a Cache is configured for the client.
       */
      open fun cacheHit(
        call: Call,
        response: Response,
      ) {
      }
    
      /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

         */
        private var expires: Date? = null
    
        /**
         * Extension header set by OkHttp specifying the timestamp when the cached HTTP request was
         * first initiated.
         */
        private var sentRequestMillis = 0L
    
        /**
         * Extension header set by OkHttp specifying the timestamp when the cached HTTP response was
         * first received.
         */
        private var receivedResponseMillis = 0L
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

        val rangesPosition = sections.read14BitInt(sectionsIndex + 2)
    
        val rangesLimit =
          when {
            sectionsIndex + 4 < sections.length -> sections.read14BitInt(sectionsIndex + 6)
            else -> ranges.length / 4
          }
    
        val rangesIndex = findRangesOffset(codePoint, rangesPosition, rangesLimit)
    
        when (val b1 = ranges[rangesIndex + 1].code) {
          in 0..63 -> {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  8. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSourceListener.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.sse
    
    import okhttp3.Response
    
    abstract class EventSourceListener {
      /**
       * Invoked when an event source has been accepted by the remote peer and may begin transmitting
       * events.
       */
      open fun onOpen(
        eventSource: EventSource,
        response: Response,
      ) {
      }
    
      /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (1)
  9. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

      private val atomicRequestCount = AtomicInteger()
    
      /**
       * The number of HTTP requests received thus far by this server. This may exceed the number of
       * HTTP connections when connection reuse is in practice.
       */
      val requestCount: Int
        get() = atomicRequestCount.get()
    
      /** The number of bytes of the POST body to keep in memory to the given limit. */
    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)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/JsseDebugLogging.kt

        enum class Type {
          Handshake,
          Plaintext,
          Encrypted,
          Setup,
          Unknown,
        }
    
        val type: Type
          get() =
            when {
              message == "adding as trusted certificates" -> Type.Setup
              message == "Raw read" || message == "Raw write" -> Type.Encrypted
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
Back to top