- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for addEncoded (0.12 sec)
-
okhttp/src/test/java/okhttp3/FormBodyTest.kt
val out = Buffer() body.writeTo(out) assertThat(out.readUtf8()).isEqualTo(expected) } @Test fun addEncoded() { val body = FormBody.Builder() .addEncoded("a+=& b", "c+=& d") .addEncoded("e+=& f", "g+=& h") .addEncoded("%25", "%25") .build() val expected = "a+%3D%26+b=c+%3D%26+d&e+%3D%26+f=g+%3D%26+h&%25=%25" val out = Buffer()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/FormBody.kt
encodeSet = FORM_ENCODE_SET, // Plus is encoded as `%2B`, space is encoded as plus. plusIsSpace = false, charset = charset, ) } fun addEncoded( name: String, value: String, ) = apply { names += name.canonicalizeWithCharset( encodeSet = FORM_ENCODE_SET, alreadyEncoded = true,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 09 12:33:05 UTC 2024 - 4.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
} @Test fun formBodyBuilder() { var builder: FormBody.Builder = FormBody.Builder() builder = FormBody.Builder(Charsets.UTF_8) builder = builder.add("", "") builder = builder.addEncoded("", "") val formBody: FormBody = builder.build() } @Test fun handshake() { var handshake: Handshake = (localhost().sslSocketFactory().createSocket() as SSLSocket).session.handshake()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0) -
okhttp/api/okhttp.api
public synthetic fun <init> (Ljava/nio/charset/Charset;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun add (Ljava/lang/String;Ljava/lang/String;)Lokhttp3/FormBody$Builder; public final fun addEncoded (Ljava/lang/String;Ljava/lang/String;)Lokhttp3/FormBody$Builder; public final fun build ()Lokhttp3/FormBody; } public final class okhttp3/FormBody$Companion { } public final class okhttp3/Handshake {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:41:01 UTC 2024 - 70.2K bytes - Viewed (0)