Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1025

Async (NIO) request processing support in ClientHttpEngine

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Beta1, 3.5.0.CR1
    • 3.0.6.Final
    • jaxrs
    • None

      It would be great if RestEasy provides another method in ClientHttpEngine interface with async support (similar to what Jersey does with Connector https://jersey.java.net/apidocs/latest/jersey/index.html) by returning a Future.

      This would be very useful when integrating with an httpclient that has an async api, e.g., AsyncHttpclient (https://github.com/AsyncHttpClient/async-http-client). AsyncHttpClient has an api to run asynchronously:

      Future<Response> response = httpclient.prepareRequest(httprequest).execute();

      However, ClientHttpEngine#invoke method returns as Response object which requires to block by calling the future.get() method.

              rhn-support-asoldano Alessio Soldano
              gurselan Anil Gursel (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: