import 'dart:async'; import 'package:platform_testing/http.dart'; Future main() async { var rq = MockHttpRequest('GET', Uri.parse('/foo'), persistentConnection: false); await rq.close(); }