Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for dart (0.2 sec)

  1. docs/changelogs/changelog_4x.md

        ```kotlin
        val response: Response = call.execute()
        val multipartReader = MultipartReader(response.body!!)
    
        multipartReader.use {
          while (true) {
            val part = multipartReader.nextPart() ?: break
            process(part.headers, part.body)
          }
        }
        ```
    
     *  New: `MediaType.parameter()` gets a parameter like `boundary` from a media type like
        `multipart/mixed; boundary="abc"`.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

            boundary = "simple boundary",
            source = Buffer().writeUtf8(multipart),
          )
    
        val part = parts.nextPart()!!
        assertThat(part.body.readUtf8()).isEqualTo("abcd\r\n--simple boundar\r\n\r\nefgh")
    
        assertThat(parts.nextPart()).isNull()
      }
    
      @Test fun `do not need to read entire part`() {
        val multipart =
          """
          |--simple boundary
          |
          |abcd
          |efgh
    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)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

     *    or after it ends.
     *
     *  * **A public key.** This cryptographic key is used for asymmetric encryption digital signatures.
     *    Note that the private key is not a part of the certificate!
     *
     *  * **A signature issued by another certificate's private key.** This mechanism allows a trusted
     *    third-party to endorse a certificate. Third parties should only endorse certificates once
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
  4. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

              this.type = type
            }
    
          /** Add a part to the body. */
          fun addPart(body: RequestBody) =
            apply {
              addPart(Part.create(body))
            }
    
          /** Add a part to the body. */
          fun addPart(
            headers: Headers?,
            body: RequestBody,
          ) = apply {
            addPart(Part.create(headers, body))
          }
    
    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)
  5. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val requestBody: RequestBody = "".toRequestBody(null)
        var part: MultipartBody.Part = MultipartBody.Part.create(null, requestBody)
        part = MultipartBody.Part.create(headersOf(), requestBody)
        part = MultipartBody.Part.create(requestBody)
        part = MultipartBody.Part.createFormData("", "")
        part = MultipartBody.Part.createFormData("", "", requestBody)
        part = MultipartBody.Part.createFormData("", null, requestBody)
    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)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

          }
    
          else -> throw IOException("unexpected journal line: $line")
        }
      }
    
      /**
       * Computes the initial size and collects garbage as a part of opening the cache. Dirty entries
       * are assumed to be inconsistent and will be deleted.
       */
      @Throws(IOException::class)
      private fun processJournal() {
        fileSystem.deleteIfExists(journalFileTmp)
    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)
  7. LICENSE.txt

              the Derivative Works; and
    
          (d) If the Work includes a "NOTICE" text file as part of its
              distribution, then any Derivative Works that You distribute must
              include a readable copy of the attribution notices contained
              within such NOTICE file, excluding those notices that do not
              pertain to any part of the Derivative Works, in at least one
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jul 23 14:02:28 GMT 2012
    - 11.1K bytes
    - Viewed (0)
  8. docs/changelogs/upgrading_to_okhttp_4.md

     * **MockResponse**: headers, http2ErrorCode, socketPolicy, status, trailers
     * **MockWebServer**: bodyLimit, port, protocolNegotiationEnabled, protocols, requestCount,
       serverSocketFactory
     * **MultipartBody.Part**: body, headers
     * **MultipartBody.**: boundary, parts, size, type
     * **OkHttpClient**: authenticator, cache, callTimeoutMillis, certificatePinner,
    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

    `MultipartBody.Builder` can build sophisticated request bodies compatible with HTML file upload forms. Each part of a multipart request body is itself a request body, and can define its own headers. If present, these headers should describe the part body, such as its `Content-Disposition`. The `Content-Length` and `Content-Type` headers are added automatically if they're available.
    
    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

    m archaeology.museum archi architectes.bj architecture.museum ardal.no aremark.no arendal.no arezzo.it ariake.saga.jp arida.wakayama.jp 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...
    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