responds With Stream
fun <T : Any> respondsWithStream(responseType: Class<T>, configurer: Consumer<StreamingResponseDefinitionBuilder<P, T>>)(source)
Configures a typed streaming response for this stub.
Parameters
T
The type of elements in the streaming response.
response Type
The Java Class of the streaming element type.
configurer
A Consumer that configures the StreamingResponseDefinitionBuilder.
Configures a String streaming response for this stub.
Shorthand for respondsWithStream(String.class, configurer).
Parameters
configurer
A Consumer that configures the StreamingResponseDefinitionBuilder.