- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 46 for cookieMap (0.33 sec)
-
src/net/http/client_test.go
cookieMap := func(cs []*Cookie) map[string][]string { m := make(map[string][]string) for _, c := range cs { m[c.Name] = append(m[c.Name], c.Value) } return m } ts := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) { var want map[string][]string got := cookieMap(r.Cookies()) c, _ := r.Cookie("Cycle")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 63.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/CookieJar.kt
*/ fun loadForRequest(url: HttpUrl): List<Cookie> companion object { /** A cookie jar that never accepts any cookies. */ @JvmField val NO_COOKIES: CookieJar = NoCookies() private class NoCookies : CookieJar { override fun saveFromResponse( url: HttpUrl, cookies: List<Cookie>, ) { } override fun loadForRequest(url: HttpUrl): List<Cookie> {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.4K bytes - Viewed (0) -
okhttp-java-net-cookiejar/api/okhttp-java-net-cookiejar.api
public final class okhttp3/java/net/cookiejar/JavaNetCookieJar : okhttp3/CookieJar { public fun <init> (Ljava/net/CookieHandler;)V public fun loadForRequest (Lokhttp3/HttpUrl;)Ljava/util/List; public fun saveFromResponse (Lokhttp3/HttpUrl;Ljava/util/List;)V
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Nov 20 16:20:29 UTC 2023 - 264 bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CookiesTest.kt
val serverUrl = urlWithIpAddress(server, "/") val cookieManager = CookieManager(null, CookiePolicy.ACCEPT_ORIGINAL_SERVER) val cookieA = HttpCookie("a", "android") cookieA.domain = serverUrl.host cookieA.path = "/" cookieManager.cookieStore.add(serverUrl.toUri(), cookieA) val cookieB = HttpCookie("b", "banana") cookieB.domain = serverUrl.host cookieB.path = "/"
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 13K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/BridgeInterceptor.kt
* request. Then it proceeds to call the network. Finally it builds a user response from the network * response. */ class BridgeInterceptor(private val cookieJar: CookieJar) : Interceptor { @Throws(IOException::class) override fun intercept(chain: Interceptor.Chain): Response { val userRequest = chain.request() val requestBuilder = userRequest.newBuilder()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.2K bytes - Viewed (0) -
src/net/http/jar.go
package http import ( "net/url" ) // A CookieJar manages storage and use of cookies in HTTP requests. // // Implementations of CookieJar must be safe for concurrent use by multiple // goroutines. // // The net/http/cookiejar package provides a CookieJar implementation. type CookieJar interface { // SetCookies handles the receipt of the cookies in a reply for the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 900 bytes - Viewed (0) -
okhttp-urlconnection/src/main/kotlin/okhttp3/JavaNetCookieJar.kt
* * This implementation delegates everything to [okhttp3.java.net.cookiejar.JavaNetCookieJar], which * conforms to the package-naming limitations of JPMS. * * Callers should prefer to use [okhttp3.java.net.cookiejar.JavaNetCookieJar] directly. */ class JavaNetCookieJar private constructor( delegate: okhttp3.java.net.cookiejar.JavaNetCookieJar, ) : CookieJar by delegate { constructor(cookieHandler: CookieHandler) : this(
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.3K bytes - Viewed (0) -
okhttp-java-net-cookiejar/build.gradle.kts
id("com.vanniktech.maven.publish.base") id("binary-compatibility-validator") } project.applyOsgi( "Export-Package: okhttp3.java.net.cookiejar", "Automatic-Module-Name: okhttp3.java.net.cookiejar", "Bundle-SymbolicName: com.squareup.okhttp3.java.net.cookiejar" ) dependencies { api(projects.okhttp) compileOnly(libs.findbugs.jsr305) compileOnly(libs.animalsniffer.annotations) }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Nov 20 16:20:29 UTC 2023 - 621 bytes - Viewed (0) -
src/net/http/cookiejar/dummy_publicsuffix_test.go
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cookiejar_test import "net/http/cookiejar" type dummypsl struct { List cookiejar.PublicSuffixList } func (dummypsl) PublicSuffix(domain string) string { return domain } func (dummypsl) String() string { return "dummy" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 03:47:00 UTC 2016 - 426 bytes - Viewed (0) -
src/net/http/cookiejar/example_test.go
http.SetCookie(w, cookie) } })) defer ts.Close() u, err := url.Parse(ts.URL) if err != nil { log.Fatal(err) } // All users of cookiejar should import "golang.org/x/net/publicsuffix" jar, err := cookiejar.New(&cookiejar.Options{PublicSuffixList: publicsuffix.List}) if err != nil { log.Fatal(err) } client := &http.Client{ Jar: jar, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 03:47:00 UTC 2016 - 1.5K bytes - Viewed (0)