public static HttpResponse fromPublisher(ResponseHeaders headers, Publisher<?> contentPublisher,
                                             HttpHeaders trailers, ObjectMapper mapper) {
        requireNonNull(mapper, "mapper");
        return streamingFrom(contentPublisher, sanitizeHeaders(headers), trailers, o -> toHttpData(mapper, o));
    }
Returns a newly created JSON Lines response from the specified {@link Publisher}.

@param headers the HTTP headers supposed to send
@param contentPublisher the {@link Publisher} which publishes the objects supposed to send as contents
@param trailers the HTTP trailers
@param mapper the mapper which converts the content object into JSON Lines
core/src/main/java/com/linecorp/armeria/server/streaming/JsonLines.java