Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for eventListenerFactory (0.21 sec)

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

    ) : Call, Cloneable {
      internal val lock: ReentrantLock = ReentrantLock()
    
      private val connectionPool: RealConnectionPool = client.connectionPool.delegate
    
      internal val eventListener: EventListener = client.eventListenerFactory.create(this)
    
      private val timeout =
        object : AsyncTimeout() {
          override fun timedOut() {
            ******@****.***()
          }
        }.apply {
    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/OkHttpClient.kt

      fun networkInterceptors(): List<Interceptor> = networkInterceptors
    
      @JvmName("-deprecated_eventListenerFactory")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "eventListenerFactory"),
        level = DeprecationLevel.ERROR,
      )
      fun eventListenerFactory(): EventListener.Factory = eventListenerFactory
    
      @JvmName("-deprecated_retryOnConnectionFailure")
      @Deprecated(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  3. okhttp-android/src/test/kotlin/okhttp3/android/AndroidLoggingTest.kt

        )
        // We should consider if these logs should retain Exceptions
        assertThat(logs.last().throwable).isNull()
      }
    
      @Test
      fun testLoggingEventListener() {
        val client =
          clientBuilder.eventListenerFactory(LoggingEventListener.androidLogging(tag = "testLoggingEventListener")).build()
    
        try {
          client.newCall(request).execute()
        } catch (uhe: UnknownHostException) {
          // expected
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 11:07:32 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  4. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.Request
    import okhttp3.Response
    
    /**
     * An OkHttp EventListener, which logs call events. Can be applied as an
     * [event listener factory][OkHttpClient.eventListenerFactory].
     *
     * The format of the logs created by this class should not be considered stable and may change
     * slightly between releases. If you need a stable logging format, use your own event listener.
     */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 11:07:32 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/DispatcherTest.kt

      val dispatcher = Dispatcher(executor)
      val listener = RecordingEventListener()
      var client =
        clientTestRule.newClientBuilder()
          .dns { throw UnknownHostException() }
          .dispatcher(dispatcher)
          .eventListenerFactory(clientTestRule.wrap(listener))
          .build()
    
      @BeforeEach
      fun setUp() {
        dispatcher.maxRequests = 20
        dispatcher.maxRequestsPerHost = 10
        listener.forbidLock(dispatcher)
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.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
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  7. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        serverListener.assertClosed(1000, "goodbye")
      }
    
      @Test
      fun webSocketsDontTriggerEventListener() {
        val listener = RecordingEventListener()
        client =
          client.newBuilder()
            .eventListenerFactory(clientTestRule.wrap(listener))
            .build()
        webServer.enqueue(
          MockResponse.Builder()
            .webSocketUpgrade(serverListener)
            .build(),
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  8. okhttp/src/test/java/okhttp3/CallTest.kt

      private var listener = RecordingEventListener()
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private var client =
        clientTestRule.newClientBuilder()
          .eventListenerFactory(clientTestRule.wrap(listener))
          .build()
      private val callback = RecordingCallback()
      private val cache =
        Cache(
          fileSystem = LoggingFilesystem(fileSystem),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  9. okhttp/api/okhttp.api

    	public final fun -deprecated_cookieJar ()Lokhttp3/CookieJar;
    	public final fun -deprecated_dispatcher ()Lokhttp3/Dispatcher;
    	public final fun -deprecated_dns ()Lokhttp3/Dns;
    	public final fun -deprecated_eventListenerFactory ()Lokhttp3/EventListener$Factory;
    	public final fun -deprecated_followRedirects ()Z
    	public final fun -deprecated_followSslRedirects ()Z
    	public final fun -deprecated_hostnameVerifier ()Ljavax/net/ssl/HostnameVerifier;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              latch.countDown()
            }
          }
        client =
          client.newBuilder().eventListenerFactory(
            clientTestRule.wrap(
              object : EventListener() {
                var callCount = 0
    
                override fun connectionAcquired(
                  call: Call,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
Back to top