public static HttpResponse fromStream(ResponseHeaders headers, Stream<?> contentStream,
                                          HttpHeaders trailers, Executor executor,
                                          ObjectMapper mapper) {
        requireNonNull(mapper, "mapper");
        return streamingFrom(contentStream, sanitizeHeaders(headers), trailers,
                             o -> toHttpData(mapper, o), executor);
    }
Creates a new JSON Text Sequences from the specified {@link Stream}.

@param headers the HTTP headers supposed to send
@param contentStream the {@link Stream} which publishes the objects supposed to send as contents
@param trailers the HTTP trailers
@param executor the executor which iterates the stream
@param mapper the mapper which converts the content object into JSON Text Sequences
core/src/main/java/com/linecorp/armeria/server/streaming/JsonTextSequences.java