Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for CookieManager (0.1 sec)

  1. okhttp/src/test/java/okhttp3/CookiesTest.kt

        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 = "/"
        cookieManager.cookieStore.add(serverUrl.toUri(), cookieB)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

      private lateinit var client: OkHttpClient
      private lateinit var cache: Cache
      private val nullHostnameVerifier = HostnameVerifier { _: String?, _: SSLSession? -> true }
      private val cookieManager = CookieManager()
      private lateinit var server: MockWebServer
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
    
        platform.assumeNotOpenJSSE()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

    import assertk.assertions.isNotInstanceOf
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import assertk.assertions.isSameAs
    import java.io.IOException
    import java.net.CookieManager
    import java.net.Proxy
    import java.net.ProxySelector
    import java.net.ResponseCache
    import java.net.SocketAddress
    import java.net.URI
    import java.time.Duration
    import java.util.AbstractList
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheTest.kt

      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private lateinit var client: OkHttpClient
      private lateinit var cache: Cache
      private val cookieManager = CookieManager()
    
      @BeforeEach
      fun setUp(
        @MockWebServerInstance(name = "1") server: MockWebServer,
        @MockWebServerInstance(name = "2") server2: MockWebServer,
      ) {
        this.server = server
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/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 =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

    import assertk.assertions.isNull
    import assertk.assertions.isTrue
    import assertk.fail
    import java.io.File
    import java.io.IOException
    import java.io.InputStream
    import java.net.ConnectException
    import java.net.CookieManager
    import java.net.HttpURLConnection
    import java.net.InetAddress
    import java.net.PasswordAuthentication
    import java.net.ProtocolException
    import java.net.Proxy
    import java.net.ProxySelector
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
Back to top