Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 27 of 27 for MutableList (0.23 sec)

  1. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

        internal var encodedPassword = ""
        internal var host: String? = null
        internal var port = -1
        internal val encodedPathSegments = mutableListOf<String>("")
        internal var encodedQueryNamesAndValues: MutableList<String?>? = null
        internal var encodedFragment: String? = null
    
        /**
         * @param scheme either "http" or "https".
         */
        fun scheme(scheme: String) =
          apply {
            when {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  2. okhttp/src/main/kotlin/okhttp3/Cookie.kt

        @JvmStatic
        fun parseAll(
          url: HttpUrl,
          headers: Headers,
        ): List<Cookie> {
          val cookieStrings = headers.values("Set-Cookie")
          var cookies: MutableList<Cookie>? = null
    
          for (i in 0 until cookieStrings.size) {
            val cookie = parse(url, cookieStrings[i]) ?: continue
            if (cookies == null) cookies = mutableListOf()
            cookies.add(cookie)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        server.enqueue(MockResponse(body = "DEF"))
        // Enqueue an additional response that show if we burnt a good prior response.
        server.enqueue(
          MockResponse(body = "XXX"),
        )
        val connections: MutableList<RealConnection?> = ArrayList()
        val localClient =
          client.newBuilder().eventListener(
            object : EventListener() {
              override fun connectionAcquired(
                call: Call,
    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)
  4. okhttp/src/test/java/okhttp3/CallTest.kt

            body = "proxy auth required",
            inTunnel = true,
          ),
        )
        server.enqueue(MockResponse(inTunnel = true))
        server.enqueue(MockResponse())
        val challengeSchemes: MutableList<String?> = ArrayList()
        val credential = basic("jesse", "password1")
        client =
          client.newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
    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)
  5. okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt

       *
       * https://github.com/square/okhttp/issues/2409
       */
      @Test
      fun connectionsAreNotReusedIfNetworkInterceptorInterferes() {
        val responsesNotClosed: MutableList<Response?> = ArrayList()
        client =
          client.newBuilder()
            // Since this test knowingly leaks a connection, avoid using the default shared connection
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CacheTest.kt

              .build(),
          )
        assertThat(conditionalRequest.headers["If-Modified-Since"])
          .isEqualTo(lastModifiedDate)
      }
    
      @Test
      fun testPublicPathConstructor() {
        val events: MutableList<String> = ArrayList()
        fileSystem.createDirectories(cache.directoryPath)
        fileSystem.createDirectories(cache.directoryPath)
        val loggingFileSystem: FileSystem =
          object : ForwardingFileSystem(fileSystem) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertThat(buffer.size).isEqualTo(150)
        val synStream = peer.takeFrame()
        assertThat(synStream.type).isEqualTo(Http2.TYPE_HEADERS)
        for (i in 0..2) {
          val windowUpdateStreamIds: MutableList<Int?> = ArrayList(2)
          for (j in 0..1) {
            val windowUpdate = peer.takeFrame()
            assertThat(windowUpdate.type).isEqualTo(Http2.TYPE_WINDOW_UPDATE)
            windowUpdateStreamIds.add(windowUpdate.streamId)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
Back to top