Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Parts (0.16 sec)

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

          )
    
        assertThat(parts.nextPart()).isNotNull()
        assertThat(parts.nextPart()).isNull()
        assertThat(parts.nextPart()).isNull()
      }
    
      @Test fun `empty source`() {
        val parts =
          MultipartReader(
            boundary = "simple boundary",
            source = Buffer(),
          )
    
        assertFailsWith<EOFException> {
          parts.nextPart()
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

        level = DeprecationLevel.ERROR,
      )
      fun size(): Int = size
    
      @JvmName("-deprecated_parts")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "parts"),
        level = DeprecationLevel.ERROR,
      )
      fun parts(): List<Part> = parts
    
      @Throws(IOException::class)
      override fun contentLength(): Long {
        var result = contentLength
        if (result == -1L) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/MultipartBodyTest.kt

        assertThat(body.boundary).isEqualTo("123")
        assertThat(body.type).isEqualTo(MultipartBody.MIXED)
        assertThat(body.contentType().toString())
          .isEqualTo("multipart/mixed; boundary=123")
        assertThat(body.parts.size).isEqualTo(1)
        assertThat(body.contentLength()).isEqualTo(33L)
        val buffer = Buffer()
        body.writeTo(buffer)
        assertThat(body.contentLength()).isEqualTo(buffer.size)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val type: MediaType = multipartBody.type()
        val boundary: String = multipartBody.boundary()
        val size: Int = multipartBody.size()
        val parts: List<MultipartBody.Part> = multipartBody.parts()
      }
    
      @Test @Disabled
      fun multipartBodyPart() {
        val multipartBody: MultipartBody = MultipartBody.Builder().build()
        val part: MultipartBody.Part = multipartBody.part(0)
    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)
  5. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        }
    
        when {
          secondSpace != -1 && firstSpace == CLEAN.length && line.startsWith(CLEAN) -> {
            val parts =
              line.substring(secondSpace + 1)
                .split(' ')
            entry.readable = true
            entry.currentEditor = null
            entry.setLengths(parts)
          }
    
          secondSpace == -1 && firstSpace == DIRTY.length && line.startsWith(DIRTY) -> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val type: MediaType = multipartBody.type
        val boundary: String = multipartBody.boundary
        val size: Int = multipartBody.size
        val parts: List<MultipartBody.Part> = multipartBody.parts
        val part: MultipartBody.Part = multipartBody.part(0)
        val contentType: MediaType = multipartBody.contentType()
        val contentLength: Long = multipartBody.contentLength()
    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)
  7. okhttp/src/main/kotlin/okhttp3/CipherSuite.kt

              return 0
            }
          }
    
        /**
         * Holds interned instances. This needs to be above the init() calls below so that it's
         * initialized by the time those parts of `<clinit>()` run. Guarded by CipherSuite.class.
         */
        private val INSTANCES = mutableMapOf<String, CipherSuite>()
    
        // Last updated 2016-07-03 using cipher suites from Android 24 and Java 9.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 39.9K bytes
    - Viewed (1)
  8. docs/changelogs/upgrading_to_okhttp_4.md

     * **MockWebServer**: bodyLimit, port, protocolNegotiationEnabled, protocols, requestCount,
       serverSocketFactory
     * **MultipartBody.Part**: body, headers
     * **MultipartBody.**: boundary, parts, size, type
     * **OkHttpClient**: authenticator, cache, callTimeoutMillis, certificatePinner,
       connectTimeoutMillis, connectionPool, connectionSpecs, cookieJar, dispatcher, dns,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
  9. docs/recipes.md

    === ":material-language-kotlin: Kotlin"
        ```kotlin
          private val client = OkHttpClient()
    
          fun run() {
            val request = Request.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Feb 18 08:52:22 GMT 2022
    - 40.2K bytes
    - Viewed (1)
  10. okhttp/src/main/resources/okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz

    aridagawa.wakayama.jp arita.saga.jp arkhangelsk.su armenia.su army arna.no arpa arq.br art art.br art.do art.dz art.ht art.museum art.pl art.sn artanddesign.museum artcenter.museum artdeco.museum arte arte.bo arteducation.museum artgallery.museum arts.co arts.museum arts.nf arts.ro arts.ve artsandcrafts.museum arvo.network as as.us asago.hyogo.jp asahi.chiba.jp asahi.ibaraki.jp asahi.mie.jp asahi.nagano.jp asahi.toyama.jp asahi.yamagata.jp asahikawa.hokkaido.jp asaka.saitama.jp asakawa.fukushima.jp asakuchi.okayama.jp...
    Others
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 40.4K bytes
    - Viewed (0)
Back to top