Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 105 for Make (0.16 sec)

  1. mockwebserver/README.md

      server.enqueue(new MockResponse().setBody("yo dog"));
    
      // Start the server.
      server.start();
    
      // Ask the server for its URL. You'll need this to make HTTP requests.
      HttpUrl baseUrl = server.url("/v1/chat/");
    
      // Exercise your application code, which should make those HTTP requests.
      // Responses are returned in the same order that they are enqueued.
      Chat chat = new Chat(baseUrl);
    
      chat.loadMore();
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  2. okhttp-android/build.gradle.kts

      id("com.vanniktech.maven.publish.base")
      id("binary-compatibility-validator")
    }
    
    android {
      compileSdk = 34
    
      namespace = "okhttp.android"
    
      defaultConfig {
        minSdk = 21
    
        // Make sure to use the AndroidJUnitRunner (or a sub-class) in order to hook in the JUnit 5 Test Builder
        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    
        buildFeatures {
          buildConfig = false
        }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 11:07:32 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_4x.md

     *  Fix: Immediately update the connection's flow control window instead of waiting for the
        receiving stream to process it.
    
        This change may increase OkHttp's memory use for applications that make many concurrent HTTP
        calls and that can receive data faster than they can process it. Previously, OkHttp limited
        HTTP/2 to 16 MiB of unacknowledged data per connection. With this fix there is a limit of 16 MiB
    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)
  4. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

     * **reactive** authentication after receiving a challenge from either an origin web server or proxy
     * server.
     *
     * ## Preemptive Authentication
     *
     * To make HTTPS calls using an HTTP proxy server OkHttp must first negotiate a connection with
     * the proxy. This proxy connection is called a "TLS Tunnel" and is specified by
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

        delegate.setPolicy(address, policy)
      }
    
      /**
       * A policy for how the pool should treat a specific address.
       */
      class AddressPolicy(
        /**
         * How many concurrent calls should be possible to make at any time.
         * The pool will routinely try to pre-emptively open connections to satisfy this minimum.
         * Connections will still be closed if they idle beyond the keep-alive but will be replaced.
         */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  6. docs/features/events.md

        printEvent("dnsStart");
      }
    
      @Override public void dnsEnd(Call call, String domainName, List<InetAddress> inetAddressList) {
        printEvent("dnsEnd");
      }
    
      ...
    }
    ```
    
    We make a couple calls:
    
    ```java
    Request request = new Request.Builder()
        .url("https://publicobject.com/helloworld.txt")
        .build();
    
    System.out.println("REQUEST 1 (new connection)");
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        request: Request,
        newRoutePlanner: Boolean,
        chain: RealInterceptorChain,
      ) {
        check(interceptorScopedExchange == null)
    
        this.withLock {
          check(!responseBodyOpen) {
            "cannot make a new request because the previous response is still open: " +
              "please call response.close()"
          }
          check(!requestBodyOpen)
        }
    
        if (newRoutePlanner) {
          val routePlanner =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  8. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        val adapter = Adapters.NULL.withTag(tagClass = DerHeader.TAG_CLASS_PRIVATE, tag = 65_000L)
        assertThat(adapter.toDer(null)).isEqualTo(bytes)
        assertThat(adapter.fromDer(bytes)).isNull()
      }
    
      /** Make the claimed length of a nested object larger than the enclosing object. */
      @Test fun `large object inside small object`() {
        val bytes = "301b300d06092a864886f70d010101050003847fffffff000504030201".decodeHex()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

      }
    
      @Test
      fun parseHostAsciiNonPrintable() {
        val host = "host\u0001"
        assertInvalid("http://$host/", "Invalid URL host: \"host\u0001\"")
        // TODO make exception message escape non-printable characters
      }
    
      @Test
      fun parseDoesNotTrimOtherWhitespaceCharacters() {
        // Whitespace characters list from Google's Guava team: http://goo.gl/IcR9RD
        // line tabulation
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        )
        val response = getResponse(newRequest("/"))
        assertContent("This is the 2nd server!", response)
        assertThat(response.request.url).isEqualTo(
          server2.url("/"),
        )
    
        // make sure the first server was careful to recycle the connection
        assertContent("This is the first server again!", getResponse(Request(server.url("/"))))
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
Back to top