Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for sameSite (0.11 sec)

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

      }
    
      @Test fun emptySameSite() {
        assertThat(parse(url, "a=b; SameSite=")!!.sameSite).isEqualTo("")
        assertThat(parse(url, "a=b; SameSite= ")!!.sameSite).isEqualTo("")
        assertThat(parse(url, "a=b; SameSite=\r\t \n")!!.sameSite).isEqualTo("")
      }
    
      @Test fun spaceInSameSite() {
        assertThat(parse(url, "a=b; SameSite=a b")!!.sameSite).isEqualTo("a b")
      }
    
    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/main/kotlin/okhttp3/Cookie.kt

            this.secure = true
          }
    
        fun httpOnly() =
          apply {
            this.httpOnly = true
          }
    
        fun sameSite(sameSite: String) =
          apply {
            require(sameSite.trim() == sameSite) { "sameSite is not trimmed" }
            this.sameSite = sameSite
          }
    
        fun build(): Cookie {
          return Cookie(
            name ?: throw NullPointerException("builder.name == null"),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:12:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. api/go1.11.txt

    pkg net/http, const SameSiteDefaultMode SameSite
    pkg net/http, const SameSiteLaxMode = 2
    pkg net/http, const SameSiteLaxMode SameSite
    pkg net/http, const SameSiteStrictMode = 3
    pkg net/http, const SameSiteStrictMode SameSite
    pkg net/http, const StatusMisdirectedRequest = 421
    pkg net/http, const StatusMisdirectedRequest ideal-int
    pkg net/http, type Cookie struct, SameSite SameSite
    pkg net/http, type SameSite int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 22 03:48:56 UTC 2018
    - 25K bytes
    - Viewed (0)
  4. CHANGELOG.md

        this new one.)
    
        ```kotlin
        implementation("com.squareup.okhttp3:okhttp-java-net-cookiehandler:5.0.0-alpha.12")
        ```
    
     *  New: `Cookie.sameSite` determines whether cookies should be sent on cross-site requests. This
        is used by servers to defend against Cross-Site Request Forgery (CSRF) attacks.
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 18 01:31:39 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  5. okhttp/api/okhttp.api

    	public static final fun parseAll (Lokhttp3/HttpUrl;Lokhttp3/Headers;)Ljava/util/List;
    	public final fun path ()Ljava/lang/String;
    	public final fun persistent ()Z
    	public final fun sameSite ()Ljava/lang/String;
    	public final fun secure ()Z
    	public fun toString ()Ljava/lang/String;
    	public final fun value ()Ljava/lang/String;
    }
    
    public final class okhttp3/Cookie$Builder {
    	public fun <init> ()V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        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
      fun cookieJar() {
        val cookieJar =
          object : CookieJar {
            override fun saveFromResponse(
              url: HttpUrl,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  7. src/cmd/addr2line/addr2line_test.go

    	}
    
    	// Debug paths are stored slash-separated, so convert to system-native.
    	srcPath = filepath.FromSlash(srcPath)
    	fi2, err := os.Stat(srcPath)
    	if err != nil {
    		t.Fatalf("Stat failed: %v", err)
    	}
    	if !os.SameFile(fi1, fi2) {
    		t.Fatalf("addr2line_test.go and %s are not same file", srcPath)
    	}
    	if want := "102"; srcLineNo != want {
    		t.Fatalf("line number = %v; want %s", srcLineNo, want)
    	}
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 06 13:23:48 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. internal/ioutil/ioutil_test.go

    	if err != nil {
    		t.Fatalf("Error Stat(): %v", err)
    	}
    	if !SameFile(fi1, fi2) {
    		t.Fatal("Expected the files to be same")
    	}
    	if err = os.WriteFile(tmpFile, []byte("aaa"), 0o644); err != nil {
    		t.Fatal(err)
    	}
    	fi2, err = os.Stat(tmpFile)
    	if err != nil {
    		t.Fatalf("Error Stat(): %v", err)
    	}
    	if SameFile(fi1, fi2) {
    		t.Fatal("Expected the files not to be same")
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. internal/ioutil/ioutil.go

    	bufp := ODirectPoolMedium.Get().(*[]byte)
    	defer ODirectPoolMedium.Put(bufp)
    	buf := *bufp
    
    	return io.CopyBuffer(writerOnly{dst}, src, buf)
    }
    
    // SameFile returns if the files are same.
    func SameFile(fi1, fi2 os.FileInfo) bool {
    	if !os.SameFile(fi1, fi2) {
    		return false
    	}
    	if !fi1.ModTime().Equal(fi2.ModTime()) {
    		return false
    	}
    	if fi1.Mode() != fi2.Mode() {
    		return false
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. api/go1.13.txt

    pkg math/big, method (*Int) TrailingZeroBits() uint
    pkg math/big, method (*Rat) SetUint64(uint64) *Rat
    pkg net/http, const SameSiteNoneMode = 4
    pkg net/http, const SameSiteNoneMode SameSite
    pkg net/http, const StatusEarlyHints = 103
    pkg net/http, const StatusEarlyHints ideal-int
    pkg net/http, func NewRequestWithContext(context.Context, string, string, io.Reader) (*Request, error)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Aug 08 18:44:16 UTC 2019
    - 452.6K bytes
    - Viewed (0)
Back to top