@FunctionalInterface public interface ResponseBodyEmitterAdapter
ResponseBodyEmitter.| Modifier and Type | Method and Description |
|---|---|
ResponseBodyEmitter |
adaptToEmitter(Object returnValue,
ServerHttpResponse response)
Obtain a
ResponseBodyEmitter for the given return value. |
ResponseBodyEmitter adaptToEmitter(Object returnValue, ServerHttpResponse response)
ResponseBodyEmitter for the given return value.
If the return is the body ResponseEntity then the given
ServerHttpResponse contains its status and headers.returnValue - the return value (never null)response - the responseResponseBodyEmitter