Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 125 for methods (0.17 sec)

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

       * or [responseBodyStart]. In earlier releases this method was documented to only be invoked after
       * one of those methods.
       */
      open fun responseFailed(
        call: Call,
        ioe: IOException,
      ) {
      }
    
      /**
       * Invoked immediately after a call has completely ended.  This includes delayed consumption
       * of response body by the caller.
       *
       * This method is always invoked after [callStart].
       */
    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)
  2. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientTest.kt

     * limitations under the License.
     */
    package okhttp.regression.compare
    
    import androidx.test.ext.junit.runners.AndroidJUnit4
    import org.apache.hc.client5.http.classic.methods.HttpGet
    import org.apache.hc.client5.http.impl.classic.HttpClients
    import org.apache.hc.core5.http.HttpVersion
    import org.junit.After
    import org.junit.Assert.assertEquals
    import org.junit.Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/ConnectionEvent.kt

     */
    @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
    
    package okhttp3
    
    import java.io.IOException
    import okhttp3.internal.SuppressSignatureCheck
    
    /** Data classes that correspond to each of the methods of [ConnectionListener]. */
    @SuppressSignatureCheck
    sealed class ConnectionEvent {
      abstract val timestampNs: Long
      open val connection: Connection?
        get() = null
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  4. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientHttp2Test.kt

     * information on the Apache Software Foundation, please see
     * <http://www.apache.org/>.
     *
     */
    package okhttp.regression.compare
    
    import org.apache.hc.client5.http.async.methods.SimpleHttpRequests
    import org.apache.hc.client5.http.async.methods.SimpleHttpResponse
    import org.apache.hc.client5.http.impl.async.HttpAsyncClients
    import org.apache.hc.core5.concurrent.FutureCallback
    import org.apache.hc.core5.http.ProtocolVersion
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  5. samples/slack/src/main/java/okhttp3/slack/SlackApi.java

            .addQueryParameter("state", state.base64());
    
        if (team != null) {
          builder.addQueryParameter("team", team);
        }
    
        return builder.build();
      }
    
      /** See https://api.slack.com/methods/oauth.access. */
      public OAuthSession exchangeCode(String code, HttpUrl redirectUrl) throws IOException {
        HttpUrl url = baseUrl.newBuilder("oauth.access")
            .addQueryParameter("client_id", clientId)
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Jul 06 19:30:55 GMT 2018
    - 4.4K bytes
    - Viewed (1)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt

      val subjectPublicKey: BitString,
    )
    
    @IgnoreJRERequirement // As of AGP 3.4.1, D8 desugars API 24 hashCode methods.
    internal data class Extension(
      val id: String,
      val critical: Boolean,
      val value: Any?,
    )
    
    @IgnoreJRERequirement // As of AGP 3.4.1, D8 desugars API 24 hashCode methods.
    internal data class BasicConstraints(
      /** True if this certificate can be used as a Certificate Authority (CA). */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  7. docs/features/events.md

    ### EventListener
    
    Subclass [EventListener](https://square.github.io/okhttp/3.x/okhttp/okhttp3/EventListener.html) and override methods for the events you are interested in. In a successful HTTP call with no redirects or retries the sequence of events is described by this flow.
    
    ![Events Diagram](../assets/images/******@****.***)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  8. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.startsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import org.apache.hc.client5.http.classic.methods.HttpGet
    import org.apache.hc.client5.http.impl.classic.HttpClients
    import org.apache.hc.core5.http.io.entity.EntityUtils
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Test
    
    /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. docs/changelogs/upgrading_to_okhttp_4.md

       readTimeoutMillis, retryOnConnectionFailure, socketFactory, sslSocketFactory, writeTimeoutMillis
     * **PushPromise**: headers, method, path, response
     * **Request**: body, cacheControl, headers, method, url
     * **Response**: body, cacheControl, cacheResponse, code, handshake, headers, message,
       networkResponse, priorResponse, protocol, receivedResponseAtMillis, request, sentRequestAtMillis
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/platform/AndroidPlatform.kt

        try {
          // From org.conscrypt.TrustManagerImpl, we want the method with this signature:
          // private TrustAnchor findTrustAnchorByIssuerAndSignature(X509Certificate lastCert);
          val method =
            trustManager.javaClass.getDeclaredMethod(
              "findTrustAnchorByIssuerAndSignature",
              X509Certificate::class.java,
            )
          method.isAccessible = true
          CustomTrustRootIndex(trustManager, method)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.2K bytes
    - Viewed (0)
Back to top