blob: ef00ffc6771f97a2f2aa6c118a808208a4d5e8f1 [file] [log] [blame]
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of;
/// Whether insecure connections to [host] are allowed.
/// This API is deprecated and always returns true. See
/// for more details.
/// [host] must be a [String] or [InternetAddress].
/// If any of the domain policies match [host], the matching policy will make
/// the decision. If multiple policies apply, the top matching policy makes the
/// decision. If none of the domain policies match, the embedder default is
/// used.
/// Loopback addresses are always allowed.
@Deprecated("See for followup")
bool isInsecureConnectionAllowed(dynamic host) {
return true;