Interface StreamingResponseWriter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback that writes a streaming HTTP response body.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionvoidwriteTo(@NonNull ResponseStream output, @NonNull StreamingResponseContext context) Writes response bytes to the provided output stream.
-
Method Details
-
writeTo
void writeTo(@NonNull ResponseStream output, @NonNull StreamingResponseContext context) throws Exception Writes response bytes to the provided output stream.- Parameters:
output- the response streamcontext- runtime context for this streaming response- Throws:
Exception- if the stream producer fails
-