| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library shelf_io_test; | 5 @TestOn('vm') |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 | 10 |
| 11 import 'package:http/http.dart' as http; | 11 import 'package:http/http.dart' as http; |
| 12 import 'package:http_parser/http_parser.dart' as parser; | 12 import 'package:http_parser/http_parser.dart' as parser; |
| 13 import 'package:scheduled_test/scheduled_stream.dart'; | 13 import 'package:scheduled_test/scheduled_stream.dart'; |
| 14 import 'package:scheduled_test/scheduled_test.dart'; | 14 import 'package:scheduled_test/scheduled_test.dart'; |
| 15 import 'package:shelf/shelf.dart'; | 15 import 'package:shelf/shelf.dart'; |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 return schedule(() { | 391 return schedule(() { |
| 392 var request = | 392 var request = |
| 393 new http.Request('POST', Uri.parse('http://localhost:$_serverPort/')); | 393 new http.Request('POST', Uri.parse('http://localhost:$_serverPort/')); |
| 394 | 394 |
| 395 if (headers != null) request.headers.addAll(headers); | 395 if (headers != null) request.headers.addAll(headers); |
| 396 if (body != null) request.body = body; | 396 if (body != null) request.body = body; |
| 397 | 397 |
| 398 return request.send(); | 398 return request.send(); |
| 399 }); | 399 }); |
| 400 } | 400 } |
| OLD | NEW |