public static <T> HttpResponseWriter streamingFrom(Publisher<T> publisher,
                                                       ResponseHeaders headers, HttpHeaders trailers,
                                                       Function<T, HttpData> contentConverter) {
        final HttpResponseWriter writer = HttpResponse.streaming();
        publisher.subscribe(new StreamingSubscriber<>(writer, headers, trailers, contentConverter));
        return writer;
    }
Returns a new {@link HttpResponseWriter} which sends a streaming response from the specified
{@link Publisher}.

@param publisher publishes objects
@param headers to be written to the returned {@link HttpResponseWriter}
@param trailers to be written to the returned {@link HttpResponseWriter}
@param contentConverter converts the published objects into streaming contents of the response
core/src/main/java/com/linecorp/armeria/internal/server/ResponseConversionUtil.java