responds With Stream
fun <P : Any, T : Any> BuildingStep<P>.respondsWithStream(responseType: Class<T>, configurer: Consumer<StreamingResponseDefinitionBuilder<P, T>>)(source)
Java-friendly overload for BuildingStep.respondsWithStream.
Accepts a Class and a Consumer in place of a Kotlin suspend lambda.
Parameters
T
The type of elements in the streaming response.
response Type
The Java Class of the streaming element type.
configurer
A Consumer applied to a StreamingResponseDefinitionBuilder to configure the response.