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