Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for eventListener (0.26 sec)

  1. docs/changelogs/changelog_4x.md

            .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager)
            .build()
        ```
    
     *  New: Add `cacheHit`, `cacheMiss`, and `cacheConditionalHit()` events to `EventListener`. Use
        these in logs, metrics, and even test cases to confirm your cache headers are configured as
        expected.
    
     *  New: Constant string `okhttp3.VERSION`. This is a string like "4.5.0-RC1", "4.5.0", or
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  2. okhttp/api/okhttp.api

    	public abstract fun lookup (Ljava/lang/String;)Ljava/util/List;
    }
    
    public final class okhttp3/Dns$Companion {
    }
    
    public abstract class okhttp3/EventListener {
    	public static final field Companion Lokhttp3/EventListener$Companion;
    	public static final field NONE Lokhttp3/EventListener;
    	public fun <init> ()V
    	public fun cacheConditionalHit (Lokhttp3/Call;Lokhttp3/Response;)V
    	public fun cacheHit (Lokhttp3/Call;Lokhttp3/Response;)V
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/SessionReuseTest.kt

              }
            }
          }
    
        client =
          client.newBuilder()
            .connectionSpecs(listOf(spec))
            .eventListenerFactory(
              clientTestRule.wrap(
                object : EventListener() {
                  override fun connectionAcquired(
                    call: Call,
                    connection: Connection,
                  ) {
                    val sslSocket = connection.socket() as SSLSocket
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

    import java.io.IOException
    import java.net.InetAddress
    import java.net.InetSocketAddress
    import java.net.Proxy
    import okhttp3.internal.SuppressSignatureCheck
    
    /** Data classes that correspond to each of the methods of [EventListener]. */
    @SuppressSignatureCheck
    sealed class CallEvent {
      abstract val timestampNs: Long
      abstract val call: Call
    
      val name: String
        get() = javaClass.simpleName
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

     * [RFC 2817][1]. The HTTP CONNECT request that creates this tunnel connection is special: it
     * does not participate in any [interceptors][Interceptor] or [event listeners][EventListener]. It
     * doesn't include the motivating request's HTTP headers or even its full URL; only the target
     * server's hostname is sent to the proxy.
     *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

    import org.junit.jupiter.api.Assertions.fail
    
    open class RecordingEventListener(
      /**
       * An override to ignore the normal order that is enforced.
       * EventListeners added by Interceptors will not see all events.
       */
      private val enforceOrder: Boolean = true,
    ) : EventListener() {
      val eventSequence: Deque<CallEvent> = ConcurrentLinkedDeque()
    
      private val forbiddenLocks = mutableListOf<Any>()
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt

                }
              },
            )
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .eventListener(listener)
            .apply {
              if (connectionType == HTTPS) {
                protocols(listOf(HTTP_1_1))
              }
            }
            .build()
        threadToCancel = Thread.currentThread()
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

            .build()
        var client = buildClient(clientCert, clientIntermediateCa.certificate)
        val listener = RecordingEventListener()
        client =
          client.newBuilder()
            .eventListener(listener)
            .build()
        val socketFactory = buildServerSslSocketFactory()
        server.useHttps(socketFactory)
        server.requireClientAuth()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CallTest.kt

      fun connectionIsImmediatelyUnhealthy() {
        val listener: EventListener =
          object : EventListener() {
            override fun connectionAcquired(
              call: Call,
              connection: Connection,
            ) {
              connection.socket().closeQuietly()
            }
          }
        client =
          client.newBuilder()
            .eventListener(listener)
            .build()
        executeSynchronously("/")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val interceptors: List<Interceptor> = client.interceptors()
        val networkInterceptors: List<Interceptor> = client.networkInterceptors()
        val eventListenerFactory: EventListener.Factory = client.eventListenerFactory()
        val proxySelector: ProxySelector = client.proxySelector()
        val cookieJar: CookieJar = client.cookieJar()
        val cache: Cache? = client.cache()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top