Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for read_all (9.58 sec)

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

          this.callsPerHost = other.callsPerHost
        }
    
        val host: String
          get() = originalRequest.url.host
    
        val request: Request
          get() = originalRequest
    
        val call: RealCall
          get() = this@RealCall
    
        /**
         * Attempt to enqueue this async call on [executorService]. This will attempt to clean up
         * if the executor has been shut down by reporting the call as failed.
         */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

       */
      internal var allocationLimit = 1
        private set
    
      /** Current calls carried by this connection. */
      val calls = mutableListOf<Reference<RealCall>>()
    
      /** Timestamp when `allocations.size()` reached zero. Also assigned upon initial connection. */
      var idleAtNs = Long.MAX_VALUE
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/NativeImageTestsAccessors.kt

     * limitations under the License.
     */
    package okhttp3.internal
    
    import okhttp3.Cache
    import okhttp3.Dispatcher
    import okhttp3.Response
    import okhttp3.internal.connection.Exchange
    import okhttp3.internal.connection.RealCall
    import okhttp3.internal.connection.RealConnection
    import okio.FileSystem
    import okio.Path
    
    internal fun buildCache(
      file: Path,
      maxSize: Long,
      fileSystem: FileSystem,
    ): Cache {
    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)
  4. okhttp/src/main/kotlin/okhttp3/internal/http/ExchangeCodec.kt

     */
    package okhttp3.internal.http
    
    import java.io.IOException
    import okhttp3.Headers
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.Route
    import okhttp3.internal.connection.RealCall
    import okio.Sink
    import okio.Source
    
    /** Encodes HTTP requests and decodes HTTP responses. */
    interface ExchangeCodec {
      /** The connection or CONNECT tunnel that owns this codec. */
      val carrier: Carrier
    
    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)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

    import okio.buffer
    
    /**
     * Transmits a single HTTP request and a response pair. This layers connection management and events
     * on [ExchangeCodec], which handles the actual I/O.
     */
    class Exchange(
      internal val call: RealCall,
      internal val eventListener: EventListener,
      internal val finder: ExchangeFinder,
      private val codec: ExchangeCodec,
    ) {
      /** True if the request body need not complete before the response body starts. */
    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)
  6. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

        val zippedSize = zipped.size.toInt()
        writeMedium(frame, zippedSize)
        frame.writeByte(Http2.TYPE_DATA)
        frame.writeByte(FLAG_COMPRESSED)
        frame.writeInt(expectedStreamId and 0x7fffffff)
        zipped.readAll(frame)
        assertFailsWith<IOException> {
          reader.nextFrame(requireSettings = false, BaseTestHandler())
        }.also { expected ->
          assertThat(expected.message)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

    import okhttp3.internal.connection.CallConnectionUser
    import okhttp3.internal.connection.FastFallbackExchangeFinder
    import okhttp3.internal.connection.Locks.withLock
    import okhttp3.internal.connection.RealCall
    import okhttp3.internal.connection.RealConnection
    import okhttp3.internal.connection.RealConnectionPool
    import okhttp3.internal.connection.RealRoutePlanner
    import okhttp3.internal.connection.RouteDatabase
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

          this.uriPort = ******@****.***t
        }
    
      private lateinit var call: RealCall
      private val routeDatabase = RouteDatabase()
    
      @BeforeEach fun setUp() {
        call =
          clientTestRule.newClient().newCall(
            Request.Builder()
              .url("https://$uriHost:$uriPort/")
              .build(),
          ) as RealCall
      }
    
      @AfterEach fun tearDown() {
        factory.close()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        }
    
        user.connectionAcquired(connection)
        user.connectionConnectionAcquired(connection)
        return connection
      }
    
      override fun trackFailure(
        call: RealCall,
        e: IOException?,
      ) {
        // Do nothing.
      }
    
      override fun noNewExchanges() {
        // Do nothing.
      }
    
      override fun cancel() {
        canceled = true
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/RecordingExecutor.kt

    import java.util.concurrent.TimeUnit
    import okhttp3.internal.connection.RealCall
    import okhttp3.internal.finishedAccessor
    
    internal class RecordingExecutor(
      private val dispatcherTest: DispatcherTest,
    ) : AbstractExecutorService() {
      private var shutdown: Boolean = false
      private val calls = mutableListOf<RealCall.AsyncCall>()
    
      override fun execute(command: Runnable) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
Back to top