Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for stripBody (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

                .sentRequestAtMillis(networkResponse.sentRequestAtMillis)
                .receivedResponseAtMillis(networkResponse.receivedResponseAtMillis)
                .cacheResponse(cacheResponse.stripBody())
                .networkResponse(networkResponse.stripBody())
                .build()
    
            networkResponse.body.close()
    
            // Update the cache after combining headers but before stripping the
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt

     */
    package okhttp3.sse.internal
    
    import java.io.IOException
    import okhttp3.Call
    import okhttp3.Callback
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.ResponseBody
    import okhttp3.internal.stripBody
    import okhttp3.sse.EventSource
    import okhttp3.sse.EventSourceListener
    
    internal class RealEventSource(
      private val request: Request,
      private val listener: EventSourceListener,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

    import java.net.ProtocolException
    import okhttp3.Interceptor
    import okhttp3.Response
    import okhttp3.internal.connection.Exchange
    import okhttp3.internal.http2.ConnectionShutdownException
    import okhttp3.internal.stripBody
    import okio.buffer
    
    /** This is the last interceptor in the chain. It makes a network call to the server. */
    class CallServerInterceptor(private val forWebSocket: Boolean) : Interceptor {
      @Throws(IOException::class)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.3K bytes
    - Viewed (1)
  4. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

    import okhttp3.internal.closeQuietly
    import okhttp3.internal.connection.Exchange
    import okhttp3.internal.connection.RealCall
    import okhttp3.internal.http2.ConnectionShutdownException
    import okhttp3.internal.stripBody
    import okhttp3.internal.withSuppressed
    
    /**
     * This interceptor recovers from failures and follows redirects as necessary. It may throw an
     * [IOException] if the call was canceled.
     */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12.1K bytes
    - Viewed (4)
  5. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

          """.trimMargin(),
        )
      }
    
      override fun timeout() = Timeout.NONE
    
      override fun close() {
      }
    }
    
    fun Response.stripBody(): Response {
      return newBuilder()
        .body(UnreadableResponseBody(body.contentType(), body.contentLength()))
        .build()
    }
    
    val Response.commonIsSuccessful: Boolean
      get() = code in 200..299
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  6. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/_UtilJvmKt;->toImmutableList(Ljava/util/List;)Ljava/util/List;
    HSPLokhttp3/internal/cache/CacheInterceptor$Companion;-><init>(Landroidx/lifecycle/viewmodel/R$id;)V
    HSPLokhttp3/internal/cache/CacheInterceptor$Companion;->access$stripBody(Lokhttp3/internal/cache/CacheInterceptor$Companion;Lokhttp3/Response;)Lokhttp3/Response;
    HSPLokhttp3/internal/cache/CacheInterceptor;-><clinit>()V
    HSPLokhttp3/internal/cache/CacheInterceptor;-><init>(Lokhttp3/Cache;)V
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
Back to top