title: How to do a Http POST of a string with rxSendStream of io.vertx.reactivex.ext.web.client.WebClient
body: <p>I am new to Vertx and Rx Java. I want to do a Http POST , but my content is a string. Here is my code :</p>
  
  <pre class="lang-java prettyprint-override"><code>Single&lt;HttpResponse&lt;Buffer&gt;&gt; single = webClient
    .post(apiUrl)          
    .rxSendStream(body);
  </code></pre>
  
  <p>and body can be any of the following:</p>
  
  <ul>
  <li><code>Flowable&lt;Buffer&gt;</code> body or</li>
  <li><code>Observable&lt;Buffer&gt;</code> body or</li>
  <li><code>Buffer</code> body</li>
  </ul>
  
  <p>My question is how do i convert body to any of the above types</p>