get static method

Future<ResponseInfo> get(
  1. Uri uri, {
  2. Map<String, String>? data,
  3. RequestInfo? requestInfo,
})

Makes a GET request to the given uri. The data is passed in the body of the request as JSON.

Implementation

static Future<ResponseInfo> get(
  Uri uri, {
  Map<String, String>? data,
  RequestInfo? requestInfo,
}) {
  return _fetch(
    HttpOperation.get,
    uri,
    parameters: data,
    requestInfo: requestInfo,
  );
}