Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for newCall (0.05 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        )
        server.enqueue(
          MockResponse(body = "GHI"),
        )
        val call1 = client.newCall(Request(server.url("/")))
        val response1 = call1.execute()
        val call2 = client.newCall(Request(server.url("/")))
        val response2 = call2.execute()
        val call3 = client.newCall(Request(server.url("/")))
        val response3 = call3.execute()
        assertThat(response1.body.string()).isEqualTo("ABC")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/EventListenerTest.kt

        )
        val call =
          client.newCall(
            Request.Builder()
              .url(server.url("/"))
              .build(),
          )
        call.cancel()
        call.cancel()
        assertThat(listener.recordedEventTypes()).containsExactly("Canceled")
      }
    
      private fun assertSuccessfulEventOrder(responseMatcher: Matcher<Response?>?) {
        val call =
          client.newCall(
            Request.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (2)
  3. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

     *
     * ```java
     * OkHttpClient eagerClient = client.newBuilder()
     *     .readTimeout(500, TimeUnit.MILLISECONDS)
     *     .build();
     * Response response = eagerClient.newCall(request).execute();
     * ```
     *
     * ## Shutdown Isn't Necessary
     *
     * The threads and connections that are held will be released automatically if they remain idle. But
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
  4. okhttp/api/okhttp.api

    	public abstract fun isExecuted ()Z
    	public abstract fun request ()Lokhttp3/Request;
    	public abstract fun timeout ()Lokio/Timeout;
    }
    
    public abstract interface class okhttp3/Call$Factory {
    	public abstract fun newCall (Lokhttp3/Request;)Lokhttp3/Call;
    }
    
    public abstract interface class okhttp3/Callback {
    	public abstract fun onFailure (Lokhttp3/Call;Ljava/io/IOException;)V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
Back to top