Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for withCharset (0.14 seconds)

  1. guava-tests/test/com/google/common/net/MediaTypeTest.java

      }
    
      public void testWithCharset() {
        assertThat(MediaType.parse("text/plain").withCharset(UTF_8))
            .isEqualTo(MediaType.parse("text/plain; charset=utf-8"));
        assertThat(MediaType.parse("text/plain; charset=utf-16").withCharset(UTF_8))
            .isEqualTo(MediaType.parse("text/plain; charset=utf-8"));
      }
    
      public void testHasWildcard() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 20.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/net/MediaType.java

       */
      public MediaType withCharset(Charset charset) {
        checkNotNull(charset);
        MediaType withCharset = withParameter(CHARSET_ATTRIBUTE, charset.name());
        // precache the charset so we don't need to parse it
        withCharset.parsedCharset = Optional.of(charset);
        return withCharset;
      }
    
      /** Returns true if either the type or subtype is the wildcard. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 02 01:46:40 GMT 2025
    - 48K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Challenge.kt

          newAuthParams[newKey] = value
        }
        this.authParams = newAuthParams.unmodifiable()
      }
    
      /** Returns a copy of this charset that expects a credential encoded with [charset]. */
      fun withCharset(charset: Charset): Challenge {
        val authParams = this.authParams.toMutableMap()
        authParams["charset"] = charset.name()
        return Challenge(scheme, authParams)
      }
    
      @JvmName("-deprecated_scheme")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue May 27 15:01:35 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  4. okhttp/api/jvm/okhttp.api

    	public fun equals (Ljava/lang/Object;)Z
    	public fun hashCode ()I
    	public final fun realm ()Ljava/lang/String;
    	public final fun scheme ()Ljava/lang/String;
    	public fun toString ()Ljava/lang/String;
    	public final fun withCharset (Ljava/nio/charset/Charset;)Lokhttp3/Challenge;
    }
    
    public final class okhttp3/CipherSuite {
    	public static final field Companion Lokhttp3/CipherSuite$Companion;
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 72.3K bytes
    - Click Count (0)
  5. okhttp/api/android/okhttp.api

    	public fun equals (Ljava/lang/Object;)Z
    	public fun hashCode ()I
    	public final fun realm ()Ljava/lang/String;
    	public final fun scheme ()Ljava/lang/String;
    	public fun toString ()Ljava/lang/String;
    	public final fun withCharset (Ljava/nio/charset/Charset;)Lokhttp3/Challenge;
    }
    
    public final class okhttp3/CipherSuite {
    	public static final field Companion Lokhttp3/CipherSuite$Companion;
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 72.3K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        val authParams: Map<String?, String> = challenge.authParams
        val realm: String? = challenge.realm
        val charset: Charset = challenge.charset
        val utf8: Challenge = challenge.withCharset(Charsets.UTF_8)
      }
    
      @Test
      fun cipherSuite() {
        var cipherSuite: CipherSuite = CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
        cipherSuite = CipherSuite.forJavaName("")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 49.7K bytes
    - Click Count (0)
Back to Top