public static HttpResponse fromPublisher(ResponseHeaders headers,
                                             Publisher<? extends ServerSentEvent> contentPublisher,
                                             HttpHeaders trailers) {
        requireNonNull(headers, "headers");
        requireNonNull(contentPublisher, "contentPublisher");
        requireNonNull(trailers, "trailers");
        return streamingFrom(contentPublisher, sanitizeHeaders(headers), trailers,
                             ServerSentEvents::toHttpData);
    }
Creates a new Server-Sent Events stream 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
core/src/main/java/com/linecorp/armeria/server/streaming/ServerSentEvents.java