- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for parseCookie (0.19 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 Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 24.3K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/net/http/66008.md
The new [ParseCookie] function parses a Cookie header value and returns all the cookies which were set in it. Since the same cookie name can appear multiple times the returned Values can contain more than one value for a given key. The new [ParseSetCookie] function parses a Set-Cookie header value and
Plain Text - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed Apr 17 17:43:50 GMT 2024 - 359 bytes - Viewed (0) -
api/next/66008.txt
pkg net/http, func ParseCookie(string) ([]*Cookie, error) #66008
Plain Text - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed Apr 17 17:43:50 GMT 2024 - 131 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 Apr 26 11:42:10 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 Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Apr 01 14:21:25 GMT 2024 - 46.5K bytes - Viewed (4)