createSanitized static method
List<FirstPartyHost>
createSanitized(
- Map<
String, Set< hosts,TracingHeaderType> > - InternalLogger logger
Implementation
static List<FirstPartyHost> createSanitized(
Map<String, Set<TracingHeaderType>> hosts, InternalLogger logger) {
var firstPartyHosts = <FirstPartyHost>[];
for (var entry in hosts.entries) {
var sanitizedHost = sanitizeHost(entry.key, logger);
if (sanitizedHost != null) {
firstPartyHosts.add(FirstPartyHost._(sanitizedHost, entry.value));
}
}
return firstPartyHosts;
}