Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 51 for ResponseBody (0.87 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt

        /** This is only part that's allowed to read from the underlying source. */
        private var currentPart: PartSource? = null
    
        @Throws(IOException::class)
        constructor(response: ResponseBody) : this(
          source = response.source(),
          boundary =
            response.contentType()?.parameter("boundary")
              ?: throw ProtocolException("expected the Content-Type to have a boundary parameter"),
        )
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 02:11:14 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_2x.md

        **Warning:** Avoid `Level.HEADERS` and `Level.BODY` in production because
        they could leak passwords and other authentication credentials to insecure
        logs.
    
     *  **WebSocket API now uses `RequestBody` and `ResponseBody` for messages.**
        This is a backwards-incompatible API change.
    
     *  **The DNS service is now pluggable.** In some situations this may be useful
        to manually prioritize specific IP addresses.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt

    package okhttp3.internal.connection
    
    import java.io.IOException
    import java.net.ProtocolException
    import okhttp3.EventListener
    import okhttp3.Headers
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.ResponseBody
    import okhttp3.internal.http.ExchangeCodec
    import okhttp3.internal.http.RealResponseBody
    import okio.Buffer
    import okio.ForwardingSink
    import okio.ForwardingSource
    import okio.Sink
    import okio.Socket
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt

        val code: Int = response.code()
        val message: String = response.message()
        val handshake: Handshake? = response.handshake()
        val headers: Headers = response.headers()
        val body: ResponseBody = response.body()
        val networkResponse: Response? = response.networkResponse()
        val cacheResponse: Response? = response.cacheResponse()
        val priorResponse: Response? = response.priorResponse()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt

    import mockwebserver3.junit5.StartStop
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.ResponseBody.Companion.toResponseBody
    import okhttp3.internal.closeQuietly
    import okhttp3.testing.PlatformRule
    import okhttp3.tls.HandshakeCertificates
    import org.bouncycastle.tls.TlsFatalAlert
    import org.junit.jupiter.api.Tag
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_3x.md

     *  New: Optimized HTTP/2 request header encoding. More headers are HPACK-encoded and string
        literals are now Huffman-encoded.
     *  New: Expose `Part` headers and body in `Multipart`.
     *  New: Make `ResponseBody.string()` and `ResponseBody.charStream()` BOM-aware. If your HTTP
        response body begins with a [byte order mark][bom] it will be consumed and used to select a
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

        }
      }
    
      private class CacheResponseBody(
        val snapshot: DiskLruCache.Snapshot,
        private val contentType: String?,
        private val contentLength: String?,
      ) : ResponseBody() {
        private val bodySource: BufferedSource
    
        init {
          val source = snapshot.getSource(ENTRY_BODY)
          bodySource =
            object : ForwardingSource(source) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

    import okhttp3.CallEvent.SecureConnectEnd
    import okhttp3.CallEvent.SecureConnectStart
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.ResponseBody.Companion.toResponseBody
    import okhttp3.internal.DoubleInetAddressDns
    import okhttp3.internal.RecordingOkAuthenticator
    import okhttp3.internal.connection.RealConnectionPool.Companion.get
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 60.4K bytes
    - Viewed (0)
  9. okhttp/src/androidMain/baseline-prof.txt

    HSPLokhttp3/Response;->close()V
    HSPLokhttp3/Response;->header$default(Lokhttp3/Response;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
    HSPLokhttp3/ResponseBody;-><init>()V
    HSPLokhttp3/ResponseBody;->close()V
    HSPLokhttp3/ResponseBody;->string()Ljava/lang/String;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Dec 30 23:28:56 UTC 2024
    - 127.9K bytes
    - Viewed (0)
  10. CHANGELOG.md

        your listener if OkHttp has decided to make a follow-up request. Some common follow-ups are
        authentication challenges and redirects.
    
     *  New: Handy constants for `Headers.EMPTY`, `RequestBody.EMPTY`, and `ResponseBody.EMPTY`.
    
     *  New: OkHttp now calls `StrictMode.noteSlowCall()` when initializing TLS on Android. Use
        `StrictMode` to detect if your `OkHttpClient` is being initialized on the main thread.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 31.6K bytes
    - Viewed (1)
Back to top