- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for parseAll (0.04 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/CookieTest.kt
.isTrue() } @Test fun parseAll() { val headers = Headers .Builder() .add("Set-Cookie: a=b") .add("Set-Cookie: c=d") .build() val cookies = parseAll(url, headers) assertThat(cookies.size).isEqualTo(2) assertThat(cookies[0].toString()).isEqualTo("a=b; path=/")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 24.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt
return s.removePrefix(".").toCanonicalHost() ?: throw IllegalArgumentException() } /** Returns all of the cookies from a set of HTTP response headers. */ @JvmStatic fun parseAll( url: HttpUrl, headers: Headers, ): List<Cookie> { val cookieStrings = headers.values("Set-Cookie") var cookies: MutableList<Cookie>? = null
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 23.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
val secure: Boolean = cookie.secure val matches: Boolean = cookie.matches("".toHttpUrl()) val parsedCookie: Cookie? = Cookie.parse("".toHttpUrl(), "") val cookies: List<Cookie> = Cookie.parseAll("".toHttpUrl(), headersOf()) } @Test fun cookieBuilder() { var builder: Cookie.Builder = Cookie.Builder() builder = builder.name("") builder = builder.value("")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 46.5K bytes - Viewed (0) -
api/go1.19.txt
pkg sync/atomic, type Uint64 struct #50860 pkg sync/atomic, type Uintptr struct #50860 pkg time, method (Duration) Abs() Duration #51414 pkg time, method (Time) ZoneBounds() (Time, Time) #50062 pkg crypto/x509, func ParseCRL //deprecated #50674 pkg crypto/x509, func ParseDERCRL //deprecated #50674 pkg crypto/x509, method (*Certificate) CheckCRLSignature //deprecated #50674 pkg crypto/x509, method (*Certificate) CreateCRL //deprecated #50674
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Dec 02 16:29:41 UTC 2022 - 17.9K bytes - Viewed (0)