Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for cookieBuilder (0.05 sec)

  1. okhttp/src/test/java/okhttp3/CookieTest.kt

      }
    
      @Test fun builderSameSiteTrimmed() {
        var cookieBuilder =
          Cookie.Builder()
            .name("a")
            .value("b")
            .domain("example.com")
    
        assertThrows<IllegalArgumentException> {
          cookieBuilder.sameSite(" a").build()
        }
        assertThrows<IllegalArgumentException> {
          cookieBuilder.sameSite("a ").build()
        }
        assertThrows<IllegalArgumentException> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        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("")
        builder = builder.expiresAt(0L)
        builder = builder.domain("")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top