| 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 usage_impl; | 5 library usage_impl; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:math' as math; | 8 import 'dart:math' as math; |
| 9 | 9 |
| 10 import 'uuid.dart'; | 10 import 'uuid.dart'; |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 * have one of these injected into it. There are default implementations for | 223 * have one of these injected into it. There are default implementations for |
| 224 * `dart:io` and `dart:html` clients. | 224 * `dart:io` and `dart:html` clients. |
| 225 * | 225 * |
| 226 * The POST information should be sent on a best-effort basis. The `Future` from | 226 * The POST information should be sent on a best-effort basis. The `Future` from |
| 227 * [sendPost] should complete when the operation is finished, but failures to | 227 * [sendPost] should complete when the operation is finished, but failures to |
| 228 * send the information should be silent. | 228 * send the information should be silent. |
| 229 */ | 229 */ |
| 230 abstract class PostHandler { | 230 abstract class PostHandler { |
| 231 Future sendPost(String url, Map<String, String> parameters); | 231 Future sendPost(String url, Map<String, String> parameters); |
| 232 } | 232 } |
| OLD | NEW |