blob: f65d51e685b1cdf7a7d94c7ec197e3eb86c7f3ce [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Decomposes a URI into base components for evaluation by Resolver and
/// modules.
Map<String, dynamic> decomposeUri(final Uri uri) {
return <String, dynamic>{
'uri': uri.toString(),
'scheme': uri.scheme,
'host': uri.host,
'path': uri.path,
'path segments': uri.pathSegments,
'query parameters': uri.queryParameters,
};
}