getResponse method

Future<HttpClientResponse> getResponse(
  1. String method,
  2. String action, {
  3. Map<String, String?> params = const {},
  4. Map<String, String?> headers = const {},
})
inherited

Implementation

Future<HttpClientResponse> getResponse(String method, String action,
    {Map<String, String?> params = const {},
    Map<String, String?> headers = const {}}) async {
  var req =
      await getRequest(method, action, params: params, headers: headers);
  var res = await req.close();
  return res;
}