Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for cookiejar (0.23 sec)

  1. 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()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingCookieJar.kt

     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import java.util.ArrayDeque
    import java.util.Deque
    
    class RecordingCookieJar : CookieJar {
      private val requestCookies: Deque<List<Cookie>> = ArrayDeque()
      private val responseCookies: Deque<List<Cookie>> = ArrayDeque()
    
      fun enqueueRequestCookies(vararg cookies: Cookie) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  3. okhttp-urlconnection/README.md

    OkHttp URLConnection
    ====================
    
    This module integrates OkHttp with `Authenticator` and `CookieHandler` from `java.net`.
    
    This module is obsolete; prefer `okhttp-java-net-cookiejar`.
    
    ### Download
    
    ```kotlin
    testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.12.0")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 293 bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

    import javax.net.ssl.SSLSession
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.internal.buildCache
    import okhttp3.java.net.cookiejar.JavaNetCookieJar
    import okhttp3.okio.LoggingFilesystem
    import okhttp3.testing.PlatformRule
    import okio.Path.Companion.toPath
    import okio.fakefilesystem.FakeFileSystem
    import org.junit.jupiter.api.AfterEach
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 6K bytes
    - Viewed (1)
  5. 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()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  6. settings.gradle.kts

    include(":okhttp")
    include(":okhttp-bom")
    include(":okhttp-brotli")
    include(":okhttp-coroutines")
    include(":okhttp-dnsoverhttps")
    include(":okhttp-hpacktests")
    include(":okhttp-idna-mapping-table")
    include(":okhttp-java-net-cookiejar")
    include(":okhttp-logging-interceptor")
    include(":okhttp-sse")
    include(":okhttp-testing-support")
    include(":okhttp-tls")
    include(":okhttp-urlconnection")
    include(":samples:compare")
    include(":samples:crawler")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Apr 14 14:24:05 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  7. 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 {
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  8. docs/works_with_okhttp.md

     * [Okurl](https://github.com/yschimke/okurl/wiki) A curl-like client for social networks and other APIs.
     * [PersistentCookieJar](https://github.com/franmontiel/PersistentCookieJar): A persistent `CookieJar`.
     * ⬜️ [Picasso](https://github.com/square/picasso): A powerful image downloading and caching library for Android.
     * ⬜️ [Retrofit](https://github.com/square/retrofit): Type-safe HTTP client for Android and Java by Square.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Jun 08 18:15:23 GMT 2022
    - 3.8K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CallTest.kt

              ),
          ),
        )
        val cookieJar = RecordingCookieJar()
        client =
          client.newBuilder()
            .cookieJar(cookieJar)
            .build()
        executeSynchronously("/").assertCode(200)
        val responseCookies = cookieJar.takeResponseCookies()
        assertThat(responseCookies.size).isEqualTo(2)
        assertThat(responseCookies[0].toString())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  10. 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())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
Back to top