responds With Stream
Associates the current RequestSpecification with a streaming response definition. This method is part of a fluent API for defining mappings between requests and streaming responses.
The block lambda is a suspend function, so it may call suspend APIs such as dev.mokksy.mokksy.request.CapturedRequest.body without blocking.
Parameters
The type of the request payload.
The type of the elements in the streaming response data.
A suspend lambda applied to a StreamingResponseDefinitionBuilder, used to configure the streaming response definition.
Associates the current RequestSpecification with a streaming response definition.
This overload accepts an explicit responseType class token to help the compiler infer the type parameter T when it cannot be determined from the block alone (type-witness pattern). The responseType value itself is not used at runtime.
Parameters
The type of elements in the streaming response.
A KClass token for T, used only for type inference at the call site.
A suspend lambda applied to a StreamingResponseDefinitionBuilder, used to configure the streaming response definition.