Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for RealCall (0.2 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  2. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Dispatcher.kt

    import java.util.concurrent.TimeUnit
    import java.util.concurrent.locks.ReentrantLock
    import okhttp3.internal.assertNotHeld
    import okhttp3.internal.connection.Locks.withLock
    import okhttp3.internal.connection.RealCall
    import okhttp3.internal.connection.RealCall.AsyncCall
    import okhttp3.internal.okHttpName
    import okhttp3.internal.threadFactory
    
    /**
     * Policy on when async requests are executed.
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  5. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  6. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/CallConnectionUser.kt

    import okhttp3.HttpUrl
    import okhttp3.Protocol
    import okhttp3.Route
    import okhttp3.internal.http.RealInterceptorChain
    
    /**
     * A connection user that is a specific [RealCall].
     */
    internal class CallConnectionUser(
      private val call: RealCall,
      private val poolConnectionListener: ConnectionListener,
      private val chain: RealInterceptorChain,
    ) : ConnectionUser {
      private val eventListener: EventListener
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 3.6K 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 Apr 26 11:42:10 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/Locks.kt

      }
    
      inline fun <T> RealConnection.withLock(action: () -> T): T {
        contract { callsInPlace(action, InvocationKind.EXACTLY_ONCE) }
        return lock.withLock(action)
      }
    
      inline fun <T> RealCall.withLock(action: () -> T): T {
        contract { callsInPlace(action, InvocationKind.EXACTLY_ONCE) }
        return lock.withLock(action)
      }
    
      inline fun <T> Http2Connection.withLock(action: () -> T): T {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http/RealInterceptorChain.kt

    import okhttp3.Connection
    import okhttp3.Interceptor
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.internal.checkDuration
    import okhttp3.internal.connection.Exchange
    import okhttp3.internal.connection.RealCall
    
    /**
     * A concrete interceptor chain that carries the entire interceptor chain: all application
     * interceptors, the OkHttp core, all network interceptors, and finally the network caller.
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
Back to top