DoubleReceiveConfig

class DoubleReceiveConfig

A configuration for the DoubleReceive plugin.

Constructors

Link copied to clipboard
fun DoubleReceiveConfig()

Functions

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

Excludes a specific type from caching.

Link copied to clipboard
fun excludeFromCache(block: (<ERROR CLASS>, 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: (<ERROR CLASS>) -> Boolean = { true })

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

Properties

Link copied to clipboard
var cacheRawRequest: Boolean = true

Caches a request before applying any transformations.