Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for toMultimap (0.15 sec)

  1. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

          Headers.headersOf(
            "cache-control",
            "no-cache",
            "cache-control",
            "no-store",
            "user-agent",
            "OkHttp",
          )
        val headerMap = headers.toMultimap()
        assertThat(headerMap["cache-control"]!!.size).isEqualTo(2)
        assertThat(headerMap["user-agent"]!!.size).isEqualTo(1)
      }
    
      @Test fun toMultimapUsesCanonicalCase() {
        val headers =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CollectCollectors.java

      }
    
      static <
              T extends @Nullable Object,
              K extends @Nullable Object,
              V extends @Nullable Object,
              M extends Multimap<K, V>>
          Collector<T, ?, M> toMultimap(
              Function<? super T, ? extends K> keyFunction,
              Function<? super T, ? extends V> valueFunction,
              Supplier<M> multimapSupplier) {
        checkNotNull(keyFunction);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Headers.kt

       *
       *  * `Authorization`
       *  * `Cookie`
       *  * `Proxy-Authorization`
       *  * `Set-Cookie`
       */
      override fun toString(): String = commonToString()
    
      fun toMultimap(): Map<String, List<String>> {
        val result = TreeMap<String, MutableList<String>>(String.CASE_INSENSITIVE_ORDER)
        for (i in 0 until size) {
          val name = name(i).lowercase(Locale.US)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multimaps.java

              M extends Multimap<K, V>>
          Collector<T, ?, M> toMultimap(
              java.util.function.Function<? super T, ? extends K> keyFunction,
              java.util.function.Function<? super T, ? extends V> valueFunction,
              java.util.function.Supplier<M> multimapSupplier) {
        return CollectCollectors.<T, K, V, M>toMultimap(keyFunction, valueFunction, multimapSupplier);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_2x.md

     *  **Interceptors lists are now deep-copied by `OkHttpClient.clone()`.**
        Previously clones shared interceptors, which made it difficult to customize
        the interceptors on a request-by-request basis.
    
     *  New: `Headers.toMultimap()`.
     *  New: `RequestBody.create(MediaType, ByteString)`.
     *  New: `ConnectionSpec.isCompatible(SSLSocket)`.
     *  New: `Dispatcher.getQueuedCallCount()` and
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val values: List<String> = headers.values("")
        val byteCount: Long = headers.byteCount()
        val builder: Headers.Builder = headers.newBuilder()
        val multimap: Map<String, List<String>> = headers.toMultimap()
      }
    
      @Test
      fun headersBuilder() {
        var builder: Headers.Builder = Headers.Builder()
        builder = builder.add("")
        builder = builder.add("", "")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_3x.md

    
    ## Version 3.4.0
    
    _2016-07-08_
    
     *  New: Support dynamic table size changes to HPACK Encoder.
     *  Fix: Use `TreeMap` in `Headers.toMultimap()`. This makes string lookups on
        the returned map case-insensitive.
     *  Fix: Don't share the OkHttpClient's `Dispatcher` in `HttpURLConnection`.
    
    
    ## Version 3.4.0-RC1
    
    _2016-07-02_
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  8. okhttp/api/okhttp.api

    	public static final fun of (Ljava/util/Map;)Lokhttp3/Headers;
    	public static final fun of ([Ljava/lang/String;)Lokhttp3/Headers;
    	public final fun size ()I
    	public final fun toMultimap ()Ljava/util/Map;
    	public fun toString ()Ljava/lang/String;
    	public final fun value (I)Ljava/lang/String;
    	public final fun values (Ljava/lang/String;)Ljava/util/List;
    }
    
    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