CaptureRule

data class CaptureRule(val id: String, val host: String, val method: String? = null, val pathPrefix: String? = null, val enabled: Boolean = true)

A durable capture exclusion.

A network transaction is excluded from capture when host matches the request host exactly (case-insensitively, as hostnames are case-insensitive), method is absent or matches the request method, and pathPrefix is absent or is a literal prefix of the request path. Paths are compared case-sensitively because URI paths are case-sensitive.

Exclusion happens before the transaction is redacted, stored, or exported, so an excluded request never produces a captured payload at all.

Constructors

Link copied to clipboard
constructor(id: String, host: String, method: String? = null, pathPrefix: String? = null, enabled: Boolean = true)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun matches(method: String, host: String, path: String): Boolean

True when this rule is active and excludes the given request coordinates.

Link copied to clipboard

Canonical storage form: lowercase host, uppercase method, blank optionals collapsed to null.