title: How to get content from CompleteListener in Jetty Client Async API
body: <p>In the example below from Jetty's docs, a simple method of performing an efficient, asynchronous HTTP request is described. However, it never specifies how you are actually supposed to retrieve the server's reply in this example, and I can't seem to figure it out.</p>
  
  <p>The Result object has getResponse() and getRequest(), but neither of these has methods to access content.</p>
  
  <p>Anyone know?</p>
  
  <hr>
  
  <p><strong>Jetty's docs</strong></p>
  
  <p>A simple asynchronous GET request can be written in this way:</p>
  
  <pre class="lang-java prettyprint-override"><code>httpClient.newRequest("http://domain.com/path")
          .send(new Response.CompleteListener()
          {
              @Override
              public void onComplete(Result result)
              {
                  // Your logic here
              }
          });
  </code></pre>
  
  <p>Method Request.send(Response.CompleteListener) returns void and does not block; the Response.CompleteListener provided as a parameter is notified when the request/response conversation is complete, and the Result parameter allows you to access the response object.</p>