delete

fun <P : Any> delete(name: String? = null, requestType: KClass<P>, block: RequestSpecificationBuilder<P>.() -> Unit): BuildingStep<P>(source)

Defines a stub for an HTTP DELETE request with the specified request type and configuration block.

Return

A BuildingStep for further stub customization.

Parameters

name

Optional name for the stub.

requestType

The class of the request body to match.

block

Lambda to configure the request specification.


fun <P : Any> delete(configuration: StubConfiguration, requestType: KClass<P>, block: RequestSpecificationBuilder<P>.() -> Unit): BuildingStep<P>(source)

Registers a stub for an HTTP DELETE request with the specified configuration and request type.

Return

A BuildingStep for further configuration or response definition.

Parameters

configuration

Stub configuration (name, removal behaviour, verbosity).

requestType

The class of the expected request body.

block

Lambda to configure the RequestSpecificationBuilder.


Defines a stub for an HTTP DELETE request with a string request body.

Return

A building step for further stub customization.

Parameters

block

Lambda to configure the request specification builder.