sendAsync abstract method

Future<HttpResponse> sendAsync(
  1. HttpRequest request
)

Issues an HTTP request to the specified URL, returning a Future that resolves with an HttpResponse representing the result.

request An HttpRequest describing the request to send. Returns a Future that resolves with an HttpResponse describing the response, or rejects with an Error indicating a failure.

Implementation

Future<HttpResponse> sendAsync(HttpRequest request);