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 http.test.html_utils; | 5 library http.test.html_utils; |
6 | 6 |
7 import 'dart:async'; | |
8 import 'dart:convert'; | |
9 import 'dart:html'; | 7 import 'dart:html'; |
10 | 8 |
11 import 'package:http/http.dart'; | |
12 import 'package:http/src/utils.dart'; | |
13 import 'package:unittest/unittest.dart'; | |
14 | |
15 export '../utils.dart'; | 9 export '../utils.dart'; |
16 | 10 |
17 /// The test server's echo URL. | 11 /// The test server's echo URL. |
18 Uri get echoUrl => Uri.parse( | 12 Uri get echoUrl => Uri.parse( |
19 '${window.location.protocol}//${window.location.host}/echo'); | 13 '${window.location.protocol}//${window.location.host}/echo'); |
OLD | NEW |