respondsWithStream

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.

responseType

The Java Class of the streaming element type.

configurer

A Consumer applied to a StreamingResponseDefinitionBuilder to configure the response.