Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ofString (0.61 sec)

  1. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

        )
    
        val request =
          HttpRequest
            .newBuilder(server.url("/").toUri())
            .header("Accept", "text/plain")
            .build()
    
        val response = httpClient.send(request, BodyHandlers.ofString())
        assertThat(response.statusCode()).isEqualTo(200)
        assertThat(response.body()).isEqualTo("hello, Java HTTP Client")
    
        val recorded = server.takeRequest()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/TopKSelector.java

     * as an {@link Iterable} or {@link Iterator}, prefer {@link Ordering#leastOf(Iterable, int)}.
     *
     * <p>This uses the same efficient implementation as {@link Ordering#leastOf(Iterable, int)},
     * offering expected O(n + k log k) performance (worst case O(n log k)) for n calls to {@link
     * #offer} and a call to {@link #topK}, with O(k) memory. In comparison, quickselect has the same
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableCollection.java

     *
     * <p>These are classes instead of interfaces to prevent external subtyping, but should be thought
     * of as interfaces in every important sense. Each public class such as {@link ImmutableSet} is a
     * <i>type</i> offering meaningful behavioral guarantees. This is substantially different from the
     * case of (say) {@link HashSet}, which is an <i>implementation</i>, with semantics that were
     * largely defined by its supertype.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableCollection.java

     *
     * <p>These are classes instead of interfaces to prevent external subtyping, but should be thought
     * of as interfaces in every important sense. Each public class such as {@link ImmutableSet} is a
     * <i>type</i> offering meaningful behavioral guarantees. This is substantially different from the
     * case of (say) {@link HashSet}, which is an <i>implementation</i>, with semantics that were
     * largely defined by its supertype.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt

     * Manually using `StringBuilder` to assemble these components is cumbersome: do '+' characters get
     * silently replaced with spaces? If a query parameter contains a '&amp;', does that get escaped?
     * By offering methods to read and write individual query parameters directly, application
     * developers are saved from the hassles of encoding and decoding.
     *
     * ### Plus a modern API
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 63.5K bytes
    - Viewed (0)
Back to top