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