Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for hostOnlyDomain (0.22 sec)

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

            .name("a")
            .value("b")
            .hostOnlyDomain("example.com")
            .expiresAt(Long.MAX_VALUE)
            .build()
        assertThat(cookie.toString()).isEqualTo("a=b; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/")
      }
    
      @Test fun builderExpiresAt() {
        val cookie =
          Cookie.Builder()
            .name("a")
            .value("b")
            .hostOnlyDomain("example.com")
    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)
  2. okhttp/src/main/kotlin/okhttp3/Cookie.kt

        fun domain(domain: String): Builder = domain(domain, false)
    
        /**
         * Set the host-only domain for this cookie. The cookie will match [domain] but none of
         * its subdomains.
         */
        fun hostOnlyDomain(domain: String): Builder = domain(domain, true)
    
        private fun domain(
          domain: String,
          hostOnly: Boolean,
        ) = apply {
          val canonicalDomain =
            domain.toCanonicalHost()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        var builder: Cookie.Builder = Cookie.Builder()
        builder = builder.name("")
        builder = builder.value("")
        builder = builder.expiresAt(0L)
        builder = builder.domain("")
        builder = builder.hostOnlyDomain("")
        builder = builder.path("")
        builder = builder.secure()
        builder = builder.httpOnly()
        builder = builder.sameSite("None")
        val cookie: Cookie = builder.build()
      }
    
      @Test
    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)
  4. okhttp/api/okhttp.api

    	public fun <init> ()V
    	public final fun build ()Lokhttp3/Cookie;
    	public final fun domain (Ljava/lang/String;)Lokhttp3/Cookie$Builder;
    	public final fun expiresAt (J)Lokhttp3/Cookie$Builder;
    	public final fun hostOnlyDomain (Ljava/lang/String;)Lokhttp3/Cookie$Builder;
    	public final fun httpOnly ()Lokhttp3/Cookie$Builder;
    	public final fun name (Ljava/lang/String;)Lokhttp3/Cookie$Builder;
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
Back to top