Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 75 of 75 for MediaType (0.09 sec)

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

        )
        val call =
          client.newCall(
            Request.Builder()
              .url(server.url("/"))
              .post(
                object : RequestBody() {
                  override fun contentType(): MediaType? {
                    return null
                  }
    
                  override fun writeTo(sink: BufferedSink) {
                    try {
                      for (i in 0..9) {
                        sink.writeUtf8(".")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/RequestTest.kt

    import java.io.FileWriter
    import java.net.URI
    import java.util.UUID
    import kotlin.test.assertFailsWith
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.RequestBody.Companion.asRequestBody
    import okhttp3.RequestBody.Companion.toRequestBody
    import okio.Buffer
    import okio.ByteString.Companion.encodeUtf8
    import org.junit.jupiter.api.Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_4x.md

        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"`.
    
     *  New: `Authenticator.JAVA_NET_AUTHENTICATOR` forwards authentication requests to
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_2x.md

        Previously clones shared interceptors, which made it difficult to customize
        the interceptors on a request-by-request basis.
    
     *  New: `Headers.toMultimap()`.
     *  New: `RequestBody.create(MediaType, ByteString)`.
     *  New: `ConnectionSpec.isCompatible(SSLSocket)`.
     *  New: `Dispatcher.getQueuedCallCount()` and
        `Dispatcher.getRunningCallCount()`. These can be useful in diagnostics.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CacheTest.kt

    import mockwebserver3.SocketPolicy.DisconnectAtEnd
    import mockwebserver3.junit5.internal.MockWebServerInstance
    import okhttp3.Cache.Companion.key
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.internal.addHeaderLenient
    import okhttp3.internal.cacheGet
    import okhttp3.internal.platform.Platform.Companion.get
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
Back to top