- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for sameSite (0.05 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
api/except.txt
pkg os, func Lstat(string) (FileInfo, error) pkg os, func Mkdir(string, FileMode) error pkg os, func MkdirAll(string, FileMode) error pkg os, func OpenFile(string, int, FileMode) (*File, error) pkg os, func SameFile(FileInfo, FileInfo) bool pkg os, func Stat(string) (FileInfo, error) pkg os, method (*File) Chmod(FileMode) error pkg os, method (*File) Readdir(int) ([]FileInfo, error) pkg os, method (*File) Stat() (FileInfo, error)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Sun Jun 16 23:08:08 UTC 2024 - 34.8K bytes - Viewed (0) -
api/go1.4.txt
pkg syscall (windows-amd64), type ProcessEntry32 struct, Threads uint32 pkg syscall (windows-amd64), type ProcessEntry32 struct, Usage uint32 # CL 127740043 os: make SameFile handle paths like c:a.txt properly, Alex Brainman <******@****.***> pkg syscall (windows-386), func FullPath(string) (string, error) pkg syscall (windows-amd64), func FullPath(string) (string, error)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Dec 12 03:01:01 UTC 2014 - 34K bytes - Viewed (0)