public static HttpResponse fromPublisher(HttpHeaders headers, Publisher<?> contentPublisher,
                                             HttpHeaders trailingHeaders, ObjectMapper mapper) {
        requireNonNull(mapper, "mapper");
        return streamingFrom(contentPublisher, sanitizeHeaders(headers), trailingHeaders,
                             o -> toHttpData(mapper, o));
    }
public static HttpResponse fromPublisher ( HttpHeaders headers , Publisher < ? > contentPublisher , HttpHeaders trailingHeaders , ObjectMapper mapper ) { requireNonNull ( mapper , "mapper" ) ; return streamingFrom ( contentPublisher , sanitizeHeaders ( headers ) , trailingHeaders , o -> toHttpData ( mapper , o ) ) ; }
Creates a new JSON Text Sequences 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 trailingHeaders the trailing HTTP headers supposed to send
@param mapper the mapper which converts the content object into JSON Text Sequences