Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CookieManager (0.04 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

      private val server2 = MockWebServer()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private lateinit var client: OkHttpClient
      private lateinit var cache: Cache
      private val cookieManager = CookieManager()
    
      @BeforeEach
      fun setUp() {
        platform.assumeNotOpenJSSE()
        server.protocolNegotiationEnabled = false
        fileSystem.emulateUnix()
        cache = Cache(fileSystem, "/cache/".toPath(), Long.MAX_VALUE)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 116.8K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

          ),
        )
        val cookieManager = CookieManager(null, CookiePolicy.ACCEPT_ORIGINAL_SERVER)
        val cookie = HttpCookie("c", "cookie")
        cookie.domain = server.hostName
        cookie.path = "/"
        val portList = server.port.toString()
        cookie.portlist = portList
        cookieManager.cookieStore.add(server.url("/").toUri(), cookie)
        client =
          client
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 147.4K bytes
    - Viewed (0)
Back to top