get<T> method

Future<R<T>> get<T>(
  1. String url
)

get response by url

Implementation

Future<R<T>> get<T>(String url) async {
  final uri = Uri.parse(url);
  if (!exist(uri.path)) {
    return R.error(code: RCode.notFound, msg: '$url not found!');
  }
  return _allBridges[uri.path]!.call(uri.queryParameters);
}