DoubleReceiveConfig

A configuration for the DoubleReceive plugin.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T : Any> exclude()

Excludes a specific type from caching.

Link copied to clipboard
fun excludeFromCache(block: (call: ApplicationCall, body: Any) -> Boolean)

Adds a filter to the DoubleReceive plugin. Can be called multiple times; if any of blocks returns true, a request body will not be cached in memory.

Link copied to clipboard
fun maxSize(limit: Long)

Excludes requests with a content size greater than maxSize from cache.

Link copied to clipboard
fun useFileForCache(block: (call: ApplicationCall) -> Boolean = { true })

Specifies if a temp file should be used to cache a request body.

Properties

Link copied to clipboard

Caches a request before applying any transformations.