Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 68 of 68 for Implementation (0.23 sec)

  1. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

        /**
         * Configure a single client scoped listener that will receive all analytic events for this
         * client.
         *
         * @see EventListener for semantics and restrictions on listener implementations.
         */
        fun eventListener(eventListener: EventListener) =
          apply {
            this.eventListenerFactory = eventListener.asFactory()
          }
    
        /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/CookieJar.kt

     *
     * As policy, implementations of this interface are responsible for selecting which cookies to
     * accept and which to reject. A reasonable policy is to reject all cookies, though that may
     * interfere with session-based authentication schemes that require cookies.
     *
     * As persistence, implementations of this interface must also provide storage of cookies. Simple
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt

     * will prefer pooled connections. Only pooled HTTP/2 connections are used for such de-duplication.
     *
     * It is possible to cancel the finding process by canceling its call.
     *
     * Implementations of this interface are not thread-safe. Each instance is thread-confined to the
     * thread executing the call.
     */
    interface RoutePlanner {
      val address: Address
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/RequestBody.kt

       *
       * Though any call may be initiated as a duplex call, only web servers that are specially
       * designed for this nonstandard interaction will use it. As of 2019-01, the only widely-used
       * implementation of this pattern is [gRPC][grpc].
       *
       * Because the encoding of interleaved data is not well-defined for HTTP/1, duplex request
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Jan 25 14:41:37 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CallTest.kt

      /**
       * This test cancels the call just after the response body ends. In effect we end up with a
       * connection that returns to the connection pool with the underlying socket closed. This relies
       * on an implementation detail so it might not be a valid test case in the future.
       */
      @Test
      fun cancelAfterResponseBodyEnd() {
        enableTls()
        server.enqueue(MockResponse(body = "abc"))
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Interceptor.kt

    /**
     * Observes, modifies, and potentially short-circuits requests going out and the corresponding
     * responses coming back in. Typically interceptors add, remove, or transform headers on the request
     * or response.
     *
     * Implementations of this interface throw [IOException] to signal connectivity failures. This
     * includes both natural exceptions such as unreachable servers, as well as synthetic exceptions
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        server.enqueue(builder.build())
        server.enqueue(builder.build())
        val inputStream = getResponse(newRequest("/")).body.byteStream()
        assertThat(inputStream.markSupported(), "This implementation claims to support mark().")
          .isFalse()
        inputStream.mark(5)
        assertThat(readAscii(inputStream, 5)).isEqualTo("ABCDE")
        assertFailsWith<IOException> {
          inputStream.reset()
        }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/PushObserver.kt

    package okhttp3.internal.http2
    
    import java.io.IOException
    import okhttp3.Protocol
    import okio.BufferedSource
    
    /**
     * [HTTP/2][Protocol.HTTP_2] only. Processes server-initiated HTTP requests on the client.
     * Implementations must quickly dispatch callbacks to avoid creating a bottleneck.
     *
     * While [onReset] may occur at any time, the following callbacks are expected in order,
     * correlated by stream ID.
     *
     *  * [onRequest]
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top