Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for Kistner (0.15 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        peer.play()
    
        // Play it back.
        val connection =
          Http2Connection.Builder(true, TaskRunner.INSTANCE)
            .socket(peer.openSocket())
            .pushObserver(Http2ConnectionTest.IGNORE)
            .listener(realConnection)
            .build()
        connection.start(sendConnectionPreface = false)
    
        // verify the peer received the ACK
        val ackFrame = peer.takeFrame()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

              client -> "$okHttpName $peerName"
              else -> "MockWebServer $peerName"
            }
          this.source = source
          this.sink = sink
        }
    
        fun listener(listener: Listener) =
          apply {
            this.listener = listener
          }
    
        fun pushObserver(pushObserver: PushObserver) =
          apply {
            this.pushObserver = pushObserver
          }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      @Synchronized fun receivedPongCount(): Int = receivedPongCount
    
      @Throws(IOException::class)
      override fun onReadMessage(text: String) {
        listener.onMessage(this, text)
      }
    
      @Throws(IOException::class)
      override fun onReadMessage(bytes: ByteString) {
        listener.onMessage(this, bytes)
      }
    
      @Synchronized override fun onReadPing(payload: ByteString) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  4. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

        val response =
          Response.Builder().request(request).code(200).message("").protocol(Protocol.HTTP_2)
            .build()
        val listener = loggingEventListenerFactory.create(call)
        listener.cacheConditionalHit(call, response)
        listener.cacheHit(call, response)
        listener.cacheMiss(call)
        listener.satisfactionFailure(call, response)
        logRecorder
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

      /**
       * Returns an OkHttpClient for tests to use as a starting point.
       *
       * The returned client installs a default event listener that gathers debug information. This will
       * be logged if the test fails.
       *
       * This client is also configured to be slightly more deterministic, returning a single IP
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/DuplexTest.kt

      var clientTestRule = OkHttpClientTestRule()
      private lateinit var server: MockWebServer
      private var listener = RecordingEventListener()
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private var client =
        clientTestRule.newClientBuilder()
          .eventListenerFactory(clientTestRule.wrap(listener))
          .build()
      private val executorService = Executors.newScheduledThreadPool(1)
    
      @BeforeEach
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  7. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

            val http2SocketHandler = Http2SocketHandler(socket, protocol)
            val connection =
              Http2Connection.Builder(false, taskRunner)
                .socket(socket)
                .listener(http2SocketHandler)
                .build()
            connection.start()
            openConnections.add(connection)
            openClientSockets.remove(socket)
            return
          } else if (protocol !== Protocol.HTTP_1_1) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

     *
     * Steps to run in your own code
     *
     * 1. In your main method `WireSharkListenerFactory.register()`
     * 2. Create Listener factory `val eventListenerFactory = WireSharkListenerFactory(
    logFile = File("/tmp/key.log"), tlsVersions = tlsVersions, launch = launch)`
     * 3. Register with `client.eventListenerFactory(eventListenerFactory)`
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (1)
  9. okhttp/src/main/kotlin/okhttp3/EventListener.kt

     * limitations under the License.
     */
    package okhttp3
    
    import java.io.IOException
    import java.net.InetAddress
    import java.net.InetSocketAddress
    import java.net.Proxy
    
    /**
     * Listener for metrics events. Extend this class to monitor the quantity, size, and duration of
     * your application's HTTP calls.
     *
     * All start/connect/acquire events will eventually receive a matching end/release event, either
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt

        }
        responseBody.close()
        assertEquals(if (connectionType == H2) 1 else 0, client.connectionPool.connectionCount())
    
        cancelLatch.await()
    
        val events = listener.eventSequence.filter { isConnectionEvent(it) }.map { it.name }
        listener.clearAllEvents()
    
        assertThat(events).startsWith("CallStart", "ConnectStart", "ConnectEnd", "ConnectionAcquired")
        if (cancelMode == CANCEL) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 9.9K bytes
    - Viewed (0)
Back to top