request method

  1. @override
Future<HttpResponse> request(
  1. String url, {
  2. String method,
  3. String data,
  4. Map<String, String> headers,
})
override

Implementation

@override
Future<HttpResponse> request(String url,
    {String method, String data, Map<String, String> headers}) {
  HttpRequest httpRequest = HttpRequest(url, method, data: data);
  requests.add(httpRequest);
  return httpRequest.completer.future;
}