ProgressHttpEntity

class ProgressHttpEntity(wrapped: HttpEntity, progressListener: (Long) -> Unit) : WrappedHttpEntity

Intercepts the writeTo method, so that a ProgressOutputStream can inform the progressListener when data has been written to the stream. This lets an application notify the user of progress when uploading files.

Constructors

Link copied to clipboard
constructor(wrapped: HttpEntity, progressListener: (Long) -> Unit)

Functions

Link copied to clipboard
open override fun consumeContent()
Link copied to clipboard
open override fun getContent(): InputStream
Link copied to clipboard
open override fun getContentEncoding(): Header?
Link copied to clipboard
open override fun getContentLength(): Long
Link copied to clipboard
open override fun getContentType(): Header?
Link copied to clipboard
open override fun isChunked(): Boolean
Link copied to clipboard
open override fun isRepeatable(): Boolean
Link copied to clipboard
open override fun isStreaming(): Boolean
Link copied to clipboard
open override fun writeTo(outStream: OutputStream)