OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 library appengine.api.remote_api; |
| 6 |
| 7 import 'dart:async'; |
| 8 import 'dart:io'; |
| 9 |
| 10 @deprecated |
| 11 abstract class RemoteApi { |
| 12 // TODO: We might want to change this to (maybe with more information about |
| 13 // request): |
| 14 // Future<List<int>> handleRemoteApiRequest(List<int> data); |
| 15 |
| 16 /** |
| 17 * Handles the RemoteApi [request]. |
| 18 * |
| 19 * The user is responsible for ensuring that [request] is either a GET or a |
| 20 * POST request. If an error occurs during the processing of [request] the |
| 21 * returned future will complete with an error. |
| 22 */ |
| 23 Future handleRemoteApiRequest(HttpRequest request); |
| 24 } |
OLD | NEW |