call method

String call([
  1. String toProxy = "/"
])

Implementation

String call([String toProxy = "/"]) {
  if (!server.isProxied) {
    return toProxy.startsWith("/") ? "$proxiedUrl$toProxy" : toProxy;
  }
  final uri = toProxy.toUri()!;
  var url = "${server.baseUrl}/$path${uri.path}".trimEnd('/');
  if (uri.query.isNotNullOrBlank) {
    url += "?${uri.query}";
  }
  return url;
}