Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for inner (0.26 sec)

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

       */
      fun newSource(): Source? {
        synchronized(this@Relay) {
          if (file == null) return null
          sourceCount++
        }
    
        return RelaySource()
      }
    
      internal inner class RelaySource : Source {
        private val timeout = Timeout()
    
        /** The operator to read and write the shared file. Null if this source is closed. */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

            (if (forWebSocket) "web socket" else "call") +
            " to " + redactedUrl()
        )
      }
    
      internal fun redactedUrl(): String = originalRequest.url.redact()
    
      inner class AsyncCall(
        private val responseCallback: Callback,
      ) : Runnable {
        @Volatile var callsPerHost = AtomicInteger(0)
          private set
    
        fun reuseCallsPerHostFrom(other: AsyncCall) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

      /**
       * 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(
        /** Maximum number of bytes to buffer before reporting a flow control error. */
        private val maxByteCount: Long,
        /**
    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. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

        if (contentLength == -1L) return
        val body = newFixedLengthSource(contentLength)
        body.skipAll(Int.MAX_VALUE, MILLISECONDS)
        body.close()
      }
    
      /** An HTTP request body. */
      private inner class KnownLengthSink : Sink {
        private val timeout = ForwardingTimeout(sink.timeout())
        private var closed: Boolean = false
    
        override fun timeout(): Timeout = timeout
    
        override fun write(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

            } finally {
              this.removeSnapshot = null
            }
          }
        }
      }
    
      /** A snapshot of the values for an entry. */
      inner class Snapshot internal constructor(
        private val key: String,
        private val sequenceNumber: Long,
        private val sources: List<Source>,
        private val lengths: LongArray,
      ) : Closeable {
    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)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

      }
    
      fun noRequestBody() {
        call.messageDone(this, requestDone = true, responseDone = false, e = null)
      }
    
      /** A request body that fires events when it completes. */
      private inner class RequestBodySink(
        delegate: Sink,
        /** The exact number of bytes to be written, or -1L if that is unknown. */
        private val contentLength: Long,
      ) : ForwardingSink(delegate) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.2K bytes
    - Viewed (2)
  7. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          } catch (e: Exception) {
            logger.log(Level.SEVERE, "$this connection from ${raw.inetAddress} crashed", e)
          }
        }
      }
    
      internal inner class SocketHandler(private val raw: Socket) {
        private var sequenceNumber = 0
    
        @Throws(Exception::class)
        fun handle() {
          if (!processTunnelRequests()) return
    
    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)
  8. okhttp/src/test/java/okhttp3/DuplexTest.kt

              handshakeCertificates.trustManager,
            )
            .hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
      private inner class DelayedRequestBody(
        private val delegate: RequestBody,
        delay: Long,
        timeUnit: TimeUnit,
      ) : RequestBody() {
        private val delayMillis = timeUnit.toMillis(delay)
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/io/FaultyFileSystem.kt

      ): Sink = FaultySink(super.appendingSink(file, mustExist), file)
    
      override fun sink(
        file: Path,
        mustCreate: Boolean,
      ): Sink = FaultySink(super.sink(file, mustCreate), file)
    
      inner class FaultySink(sink: Sink, private val file: Path) : ForwardingSink(sink) {
        override fun write(
          source: Buffer,
          byteCount: Long,
        ) {
          if (writeFaults.contains(file)) {
    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)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        fun start()
      }
    
      private object TestThreadSerialTask : SerialTask {
        override fun start() = error("unexpected call")
      }
    
      inner class RunnableSerialTask(
        private val runnable: Runnable,
      ) : SerialTask {
        override fun start() {
          taskRunner.assertThreadHoldsLock()
          require(currentTask == this)
          activeThreads++
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 12.5K bytes
    - Viewed (0)
Back to top