writeResp method

  1. @override
Future<void> writeResp()
override

Implementation

@override
Future<void> writeResp() async {
  if (url.startsWith("^")) {
    var path = pathNames[url.substring(2)];
    if (path == null) {
      print("Did not find path `$path` for redirect response");
      return;
    }
    redirect(Uri.parse(path));
  }
  redirect(Uri.parse(url));
}