code: public static <T> HttpResponse fromStream(HttpHeaders headers, Stream<T> contentStream,
                                                HttpHeaders trailingHeaders, Executor executor,
                                                Function<? super T, ? extends ServerSentEvent> converter) {
          requireNonNull(headers, "headers");
          requireNonNull(contentStream, "contentStream");
          requireNonNull(trailingHeaders, "trailingHeaders");
          requireNonNull(executor, "executor");
          requireNonNull(converter, "converter");
          return streamingFrom(contentStream, sanitizeHeaders(headers), trailingHeaders,
                               o -> toHttpData(converter, o), executor);
      }
docs: Creates a new Server-Sent Events stream from the specified {@link Stream} and {@code converter}.
  
  @param headers the HTTP headers supposed to send
  @param contentStream the {@link Stream} which publishes the objects supposed to send as contents
  @param trailingHeaders the trailing HTTP headers supposed to send
  @param executor the executor which iterates the stream
  @param converter the converter which converts published objects into {@link ServerSentEvent}s