BodyFilterResult

sealed interface BodyFilterResult(source)

Represents the result of a body filtering process, which can determine the state of the body after processing.

Report a problem

Inheritors

Types

Link copied to clipboard
class BufferContent(buffer: Buffer, charset: Charset, val byteSize: Long = buffer.size) : BodyFilterResult.Content

Implements the BodyFilterResult.Content interface, representing a filtering result that contains readable content from a buffer.

Link copied to clipboard

Represents a body filtering result that contains readable content.

Link copied to clipboard

Represents an empty body.

Link copied to clipboard
class Skip(val reason: String? = null, val byteSize: Long? = null) : BodyFilterResult

Represents a body filtering result that skips processing for a specific reason.

Properties

Link copied to clipboard
open val byteSize: Long?