Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 4,652 for http2 (0.02 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

        enableTlsWithTunnel()
        server.protocols = Arrays.asList(Protocol.HTTP_2, Protocol.HTTP_1_1)
        server.enqueue(
          MockResponse
            .Builder()
            .bodyDelay(100, TimeUnit.MILLISECONDS)
            .chunkedBody("Hello!", 2)
            .build(),
        )
        assertSuccessfulEventOrder(matchesProtocol(Protocol.HTTP_2))
        assertBytesReadWritten(
          eventRecorder,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.5K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

        java.net.Authenticator.setDefault(null)
        System.clearProperty("proxyHost")
        System.clearProperty("proxyPort")
        System.clearProperty("http.proxyHost")
        System.clearProperty("http.proxyPort")
        System.clearProperty("https.proxyHost")
        System.clearProperty("https.proxyPort")
        if (cache != null) {
          cache!!.delete()
        }
      }
    
      @Test
      fun requestHeaders() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java

      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        // Use the imgur image upload API as documented at https://api.imgur.com/endpoints/image
        final ProgressListener progressListener = new ProgressListener() {
          boolean firstUpdate = true;
    
          @Override public void update(long bytesWritten, long contentLength, boolean done) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (1)
  4. samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java

                  .build())
          .build();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/robots.txt")
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Dec 08 21:30:01 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/RequestCommonTest.kt

        val requestWithoutCache = Request.Builder().url("http://localhost/api").build()
        val builtRequestWithoutCache = requestWithoutCache.newBuilder().url("http://localhost/api/foo").build()
        assertThat(builtRequestWithoutCache.url).isEqualTo(
          "http://localhost/api/foo".toHttpUrl(),
        )
        val requestWithCache =
          Request
            .Builder()
            .url("http://localhost/api")
            .build()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 24 11:36:14 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/resources/web-platform-test-urltestdata.txt

    a:\t\sfoo.com  s:a p:\sfoo.com
    http://f:21/\sb\s?\sd\s#\se\s  s:http h:f port:21 p:/%20b%20 q:?%20d%20 f:#\se
    http://f:/c  s:http h:f p:/c
    http://f:0/c  s:http h:f port:0 p:/c
    http://f:00000000000000/c  s:http h:f port:0 p:/c
    http://f:00000000000000000000080/c  s:http h:f p:/c
    http://f:b/c
    http://f:\s/c
    http://f:\n/c  s:http h:f p:/c
    http://f:fifty-two/c
    http://f:999999/c  s:http h:f port:999999 p:/c
    http://f:\s21\s/\sb\s?\sd\s#\se\s
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  7. native-image-tests/src/test/kotlin/okhttp3/nativeimage/WithArgumentSourceTest.kt

    import org.junit.jupiter.params.provider.ArgumentsSource
    import org.junit.jupiter.params.support.ParameterDeclarations
    
    /**
     * This enforces us having the params classes on the classpath to workaround
     * https://github.com/graalvm/native-build-tools/issues/745
     */
    class WithArgumentSourceTest {
      @ParameterizedTest
      @ArgumentsSource(FakeArgumentsProvider::class)
      fun passingTest(value: Int) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Jul 22 20:31:49 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttp.kt

       *
       * Note that OkHttp's runtime version may be different from the version specified in your
       * project's build file due to the dependency resolution features of your build tool.
       *
       * [semver]: https://semver.org
       */
      val VERSION: String
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jul 28 20:33:04 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/AccessHeaders.java

    import okhttp3.Response;
    
    public final class AccessHeaders {
      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://api.github.com/repos/square/okhttp/issues")
            .header("User-Agent", "OkHttp Headers.java")
            .addHeader("Accept", "application/json; q=0.5")
            .addHeader("Accept", "application/vnd.github.v3+json")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.6K bytes
    - Viewed (0)
  10. docs/changelogs/changelog_4x.md

     [okio_3_2_0]: https://square.github.io/okio/changelog/#version-320
     [okio_3_6_0]: https://square.github.io/okio/changelog/#version-360
     [public_suffix]: https://publicsuffix.org/
     [rfc_2045]: https://tools.ietf.org/html/rfc2045
     [rfc_7231_647]: https://tools.ietf.org/html/rfc7231#section-6.4.7
     [rfc_7692]: https://tools.ietf.org/html/rfc7692
     [semver]: https://semver.org/
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
Back to top