getTraceHeader method

Future<Map<String, String>> getTraceHeader(
  1. String url, {
  2. String? key,
})

获取 trace http 请求头数据 key 唯一 id url 请求地址

Implementation

Future<Map<String, String>> getTraceHeader(String url, {String? key}) async {
  var map = Map<String, dynamic>();
  map["key"] = key;
  map["url"] = url;
  Map? header = await channel.invokeMethod(methodGetTraceGetHeader, map);
  if (header != null) {
    return new Map<String, String>.from(header);
  } else {
    return <String, String>{};
  }
}