Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for upsert (0.17 sec)

  1. regression-test/src/androidTest/java/okhttp/regression/IssueReproductionTest.java

    import org.junit.Test;
    import org.junit.runner.RunWith;
    
    import java.io.IOException;
    import java.security.cert.Certificate;
    import java.security.cert.X509Certificate;
    
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertTrue;
    
    /**
     * Simple test adaptable to show a failure in older versions of OkHttp
     * or Android SDKs.
     */
    @RunWith(AndroidJUnit4.class)
    public class IssueReproductionTest {
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jul 26 06:37:08 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  2. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientHttp2Test.kt

    import org.apache.hc.client5.http.impl.async.HttpAsyncClients
    import org.apache.hc.core5.concurrent.FutureCallback
    import org.apache.hc.core5.http.ProtocolVersion
    import org.junit.Assert
    import org.junit.Test
    
    /**
     * Simplified from
     * https://hc.apache.org/httpcomponents-client-5.0.x/httpclient5/examples/AsyncClientTlsAlpn.java
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

          throw AssertionError("full event sequence: $fullEventSequence", e)
        }
      }
    
      /**
       * Remove and return the next event from the recorded sequence.
       *
       * @param eventClass a class to assert that the returned event is an instance of, or null to
       *     take any event class.
       * @param elapsedMs the time in milliseconds elapsed since the immediately-preceding event, or
       *     -1L to take any duration.
       */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_4x.md

     *  Fix: Undo a performance regression introduced in OkHttp 4.0 caused by differences in behavior
        between Kotlin's `assert()` and Java's `assert()`. (Kotlin always evaluates the argument; Java
        only does when assertions are enabled.)
    
     *  Fix: Honor `RequestBody.isOneShot()` in `HttpLoggingInterceptor`.
    
    
    ## Version 4.2.2
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  5. regression-test/src/androidTest/java/okhttp/regression/LetsEncryptTest.java

    import okhttp3.tls.HandshakeCertificates;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import javax.net.ssl.SSLHandshakeException;
    
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;
    
    /**
     * Let's Encrypt expiring root test.
     *
     * Read https://community.letsencrypt.org/t/mobile-client-workarounds-for-isrg-issue/137807
     * for background.
     */
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Nov 17 07:40:31 GMT 2020
    - 6.1K bytes
    - Viewed (0)
  6. okhttp-android/src/test/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

        shadowDns.responder = {
          throw IllegalArgumentException("Network.fromNetworkHandle refusing to instantiate NETID_UNSET Network.")
        }
    
        val dns = AsyncDns.toDns(asyncDns)
    
        assertFailure {
          dns.lookup("google.invalid")
        }.apply {
          hasMessage("Network.fromNetworkHandle refusing to instantiate NETID_UNSET Network.")
          isInstanceOf(UnknownHostException::class)
        }
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 22 20:07:09 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         * [proxyAuthenticator] to set the authenticator for proxy servers.
         *
         * If unset, the [no authentication will be attempted][Authenticator.NONE].
         */
        fun authenticator(authenticator: Authenticator) =
          apply {
            this.authenticator = authenticator
          }
    
        /** Configure this client to follow redirects. If unset, redirects will be followed. */
        fun followRedirects(followRedirects: Boolean) =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

      }
    
      inline fun <reified T : CallEvent> removeUpToEvent(): T = removeUpToEvent(T::class.java)
    
      /**
       * Remove and return the next event from the recorded sequence.
       *
       * @param eventClass a class to assert that the returned event is an instance of, or null to
       *     take any event class.
       * @param elapsedMs the time in milliseconds elapsed since the immediately-preceding event, or
       *     -1L to take any duration.
       */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9K bytes
    - Viewed (1)
  9. okhttp/src/test/java/okhttp3/CookieTest.kt

        assertThat(cookie.domain).isEqualTo("example.com")
        assertThat(cookie.path).isEqualTo("/")
        assertThat(cookie.secure).isFalse()
        assertThat(cookie.httpOnly).isFalse()
        // can't be unset
        assertThat(cookie.persistent).isTrue()
        assertThat(cookie.hostOnly).isFalse()
      }
    
      @Test fun builderNameValidation() {
        assertFailsWith<IllegalArgumentException> {
          Cookie.Builder().name(" a ")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 24.3K bytes
    - Viewed (0)
  10. docs/changelogs/changelog_1x.md

    
    ## Version 1.0.2
    
    _2013-05-11_
    
     * Fix: Remove use of Java 6-only APIs.
     * Fix: Properly handle exceptions from `NetworkInterface` when querying MTU.
     * Fix: Ensure MTU has a reasonable default and upper-bound.
    
    
    ## Version 1.0.1
    
    _2013-05-06_
    
     * Correct casing of SSL in method names (`getSslSocketFactory`/`setSslSocketFactory`).
    
    
    ## Version 1.0.0
    
    _2013-05-06_
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 6.4K bytes
    - Viewed (0)
Back to top