Package-level declarations

Types

Link copied to clipboard
open class RequestSpecification<P : Any>(val method: <Error class: unknown class><<Error class: unknown class>>? = null, val path: <Error class: unknown class><String>? = null, val headers: List<<Error class: unknown class><<Error class: unknown class>>> = listOf(), val body: List<<Error class: unknown class><P?>> = listOf(), val bodyString: List<<Error class: unknown class><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
open class RequestSpecificationBuilder<P : Any>(requestType: KClass<P>)

Properties

Link copied to clipboard

The default priority value assigned to a stub when no explicit priority is specified.

Functions

Link copied to clipboard
infix fun <Error class: unknown class>.shouldHaveHeader(header: <Error class: unknown class><String, String>)

Extension function for easier usage.

Link copied to clipboard
infix fun <Error class: unknown class>.shouldNotHaveHeader(header: <Error class: unknown class><String, String>)

Extension function to assert that the headers should not contain a specific header.