Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for cookieMap (0.2 sec)

  1. 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)
  2. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        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,
              cookies: List<Cookie>,
            ) = TODO()
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  3. src/net/http/cookiejar/jar.go

    // Copyright 2012 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 implements an in-memory RFC 6265-compliant http.CookieJar.
    package cookiejar
    
    import (
    	"cmp"
    	"errors"
    	"fmt"
    	"net"
    	"net/http"
    	"net/http/internal/ascii"
    	"net/url"
    	"slices"
    	"strings"
    	"sync"
    	"time"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val eventListenerFactory: EventListener.Factory = client.eventListenerFactory()
        val proxySelector: ProxySelector = client.proxySelector()
        val cookieJar: CookieJar = client.cookieJar()
        val cache: Cache? = client.cache()
        val socketFactory: SocketFactory = client.socketFactory()
        val sslSocketFactory: SSLSocketFactory = client.sslSocketFactory()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CookieTest.kt

          val cookieA = parseCookie(0, url, stringA!!)
          for (stringB in cookieStrings) {
            val cookieB = parseCookie(0, url, stringB!!)
            if (stringA == stringB) {
              assertThat(cookieB.hashCode()).isEqualTo(cookieA.hashCode())
              assertThat(cookieB).isEqualTo(cookieA)
            } else {
              assertThat(cookieB.hashCode()).isNotEqualTo(cookieA.hashCode().toLong())
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  6. src/net/http/cookie_test.go

    	res.Header.Add("Set-Cookie", `quoted2=cookieAV; max-age="32"`)
    	res.Header.Add("Set-Cookie", `quoted3="both"; max-age="33"`)
    	got := res.Cookies()
    	want := []*Cookie{
    		{Name: "quoted0", Value: "none", MaxAge: 30},
    		{Name: "quoted1", Value: "cookieValue", MaxAge: 31},
    		{Name: "quoted2", Value: "cookieAV"},
    		{Name: "quoted3", Value: "both"},
    	}
    	if len(got) != len(want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

            throw ProtocolException(e.message)
          }
    
          if (bytesRemainingInChunk == 0L) {
            hasMoreChunks = false
            trailers = headersReader.readHeaders()
            client!!.cookieJar.receiveHeaders(url, trailers!!)
            responseBodyComplete()
          }
        }
    
        override fun close() {
          if (closed) return
          if (hasMoreChunks &&
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        val interceptors = mutableListOf<Interceptor>()
        interceptors += client.interceptors
        interceptors += RetryAndFollowUpInterceptor(client)
        interceptors += BridgeInterceptor(client.cookieJar)
        interceptors += CacheInterceptor(client.cache)
        interceptors += ConnectInterceptor
        if (!forWebSocket) {
          interceptors += client.networkInterceptors
        }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. src/net/http/client.go

    	// of every inbound Response. The Jar is consulted for every
    	// redirect that the Client follows.
    	//
    	// If Jar is nil, cookies are only sent if they are explicitly
    	// set on the Request.
    	Jar CookieJar
    
    	// Timeout specifies a time limit for requests made by this
    	// Client. The timeout includes connection time, any
    	// redirects, and reading the response body. The timer remains
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 06:06:11 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  10. src/go/build/deps_test.go

    	net/http/httptrace,
    	mime/multipart,
    	log
    	< net/http;
    
    	# HTTP-aware packages
    
    	encoding/json, net/http
    	< expvar;
    
    	net/http, net/http/internal/ascii
    	< net/http/cookiejar, net/http/httputil;
    
    	net/http, flag
    	< net/http/httptest;
    
    	net/http, regexp
    	< net/http/cgi
    	< net/http/fcgi;
    
    	# Profiling
    	FMT, compress/gzip, encoding/binary, sort, text/tabwriter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top