Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for domainMatches (0.09 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CookieTest.kt

          .isEqualTo(MAX_DATE)
      }
    
      @Test fun invalidSecond() {
        assertThat(parse(url, "a=b; Expires=Thu, 01 Jan 1970 00:00:60 GMT")!!.expiresAt)
          .isEqualTo(MAX_DATE)
      }
    
      @Test fun domainMatches() {
        val cookie = parse(url, "a=b; domain=example.com")
        assertThat(cookie!!.matches("http://example.com".toHttpUrl())).isTrue()
        assertThat(cookie.matches("http://www.example.com".toHttpUrl())).isTrue()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 24.4K bytes
    - Click Count (0)
Back to Top