Package-level declarations
Request matching and recording. Use RequestSpecificationBuilder inside get { } / post { } blocks to match by path, headers, query parameters, and body.
Types
Link copied to clipboard
Represents an HTTP request that has been captured and provides utilities to access the request's body and its string representation.
Link copied to clipboard
data class RecordedRequest(val method: HttpMethod, val uri: String, val headers: Map<String, List<String>>)
Immutable snapshot of an HTTP request for recording purposes.
Link copied to clipboard
open class RequestSpecification<P : Any>(val method: Matcher<HttpMethod>? = null, val path: Matcher<String>? = null, val headers: List<Matcher<Headers>> = listOf(), val body: List<Matcher<P?>> = listOf(), val bodyString: List<Matcher<String?>> = listOf(), val priority: Int = DEFAULT_STUB_PRIORITY, requestType: KClass<P>)
Represents a specification for matching incoming HTTP requests based on defined criteria, such as HTTP method, request path, and request body.
Link copied to clipboard