- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ParseAll (0.1 sec)
-
okhttp/src/test/java/okhttp3/CookieTest.kt
assertThat(parseCookie(0L, url, "a=b; Expires=Thu, 01 Jan 1970 00:00:01 GMT")!!.persistent) .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: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 24.3K bytes - Viewed (0) -
okhttp/src/main/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: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Apr 06 04:12:05 UTC 2024 - 23.1K bytes - Viewed (0) -
okhttp/src/test/java/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: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0)