title: Generating CSV with Spring reactive webflux
body: <p>I have an endpoint that should generate a CSV report with a stream. I implemented the endpoint like this:</p>
  
  <pre><code>     @GetMapping(value = "/sessions/csv")
        public Flux&lt;CsvEntity&gt; getCsv() {
          return csvService.exportToCsv();
    }
  </code></pre>
  
  <p>Now I'm getting the response through a stream, but I don't have headers and the data is shown with the field name. 
  I tried to use <code>StatefulBeanToCsv</code> of opencsv but for that I need a writer. When I used servlets I could initialize a writer with the <code>response.getOutputStream()</code> but with webflux I couldn't make it work.</p>
  
  <p>I didn't find any documentation for that. Any help?</p>