AbstractStreamingBuildingStep
abstract class AbstractStreamingBuildingStep<P : Any, R : AbstractResponseSpecification<P, *>>(mokksy: MokksyServer, buildingStep: BuildingStep<P>) : AbstractBuildingStep<P, R> (source)
Functions
Link copied to clipboard
Specifies an erroneous response for a completions request.
Specifies an error response for a given request scenario. This allows defining the characteristics of an erroneous response, such as the HTTP status, response body, headers, delay, and more.
open fun <T : Any> respondsError(responseType: KClass<T>, block: suspend ResponseDefinitionBuilder<P, T>.() -> Unit)
Link copied to clipboard