Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for cookieMap (0.25 sec)

  1. 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)
  2. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         * outgoing HTTP requests.
         *
         * If unset, [no cookies][CookieJar.NO_COOKIES] will be accepted nor provided.
         */
        fun cookieJar(cookieJar: CookieJar) =
          apply {
            this.cookieJar = cookieJar
          }
    
        /** Sets the response cache to be used to read and write cached responses. */
        fun cache(cache: Cache?) =
          apply {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

      ) {
        setUp(protocol, mockWebServer)
        val cookieJar = RecordingCookieJar()
        val requestCookie =
          Cookie.Builder()
            .name("a")
            .value("b")
            .domain(server.hostName)
            .build()
        cookieJar.enqueueRequestCookies(requestCookie)
        client =
          client.newBuilder()
            .cookieJar(cookieJar)
            .build()
        server.enqueue(MockResponse())
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  4. okhttp/api/okhttp.api

    }
    
    public abstract interface class okhttp3/CookieJar {
    	public static final field Companion Lokhttp3/CookieJar$Companion;
    	public static final field NO_COOKIES Lokhttp3/CookieJar;
    	public abstract fun loadForRequest (Lokhttp3/HttpUrl;)Ljava/util/List;
    	public abstract fun saveFromResponse (Lokhttp3/HttpUrl;Ljava/util/List;)V
    }
    
    public final class okhttp3/CookieJar$Companion {
    }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_3x.md

        implementation. This is useful in sandboxed environments like Google App
        Engine.
    
     *  **OkHttp now does cookies.** We've replaced `java.net.CookieHandler` with
        a new interface, `CookieJar` and added our own `Cookie` model class. This
        new cookie follows the latest RFC and supports the same cookie attributes
        as modern web browsers.
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
Back to top