responds With Stream
Associates the current request specification with a streaming response definition. This method is part of a fluent API for defining mappings between requests and streaming responses.
Parameters
P
The type of the request payload.
T
The type of the elements in the streaming response data.
block
A lambda function applied to a me.kpavlov.mokksy.response.StreamingResponseDefinitionBuilder, used to configure the streaming response definition.
fun <T : Any> respondsWithStream(responseType: KClass<T>, block: StreamingResponseDefinitionBuilder<P, T>.() -> Unit)