$http static method

$Value? $http(
  1. Runtime runtime,
  2. $Value? target,
  3. List<$Value?> args
)

Implementation

static $Value? $http(Runtime runtime, $Value? target, List<$Value?> args) {
  final queryParameters = (args[2]?.$value as Map?)?.map(
      (key, value) => MapEntry(key.$reified.toString(), value.$reified));
  return $Uri.wrap(
      Uri.http(args[0]!.$value, args[1]?.$value ?? "", queryParameters));
}