- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for parseCookie (0.17 sec)
-
okhttp/src/test/java/okhttp3/CookieTest.kt
} @Test fun maxAge() { assertThat(parseCookie(50000L, url, "a=b; Max-Age=1")!!.expiresAt).isEqualTo(51000L) assertThat(parseCookie(50000L, url, "a=b; Max-Age=9223372036854724")!!.expiresAt) .isEqualTo(MAX_DATE) assertThat(parseCookie(50000L, url, "a=b; Max-Age=9223372036854725")!!.expiresAt) .isEqualTo(MAX_DATE) assertThat(parseCookie(50000L, url, "a=b; Max-Age=9223372036854726")!!.expiresAt)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 24.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/internal.kt
import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.Response import okhttp3.internal.concurrent.TaskRunner import okhttp3.internal.connection.RealConnection internal fun parseCookie( currentTimeMillis: Long, url: HttpUrl, setCookie: String, ): Cookie? = Cookie.parse(currentTimeMillis, url, setCookie) internal fun cookieToString( cookie: Cookie, forObsoleteRfc2965: Boolean,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
val path: String = cookie.path val httpOnly: Boolean = cookie.httpOnly 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()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 14:21:25 GMT 2024 - 46.5K bytes - Viewed (4)