| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 oauth2; | 5 library oauth2; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 import 'dart:uri'; | |
| 10 | 9 |
| 11 import 'package:oauth2/oauth2.dart'; | 10 import 'package:oauth2/oauth2.dart'; |
| 12 import 'package:pathos/path.dart' as path; | 11 import 'package:pathos/path.dart' as path; |
| 13 | 12 |
| 14 import 'http.dart'; | 13 import 'http.dart'; |
| 15 import 'io.dart'; | 14 import 'io.dart'; |
| 16 import 'log.dart' as log; | 15 import 'log.dart' as log; |
| 17 import 'safe_http_server.dart'; | 16 import 'safe_http_server.dart'; |
| 18 import 'system_cache.dart'; | 17 import 'system_cache.dart'; |
| 19 import 'utils.dart'; | 18 import 'utils.dart'; |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 response.statusCode = 404; | 196 response.statusCode = 404; |
| 198 response.close(); | 197 response.close(); |
| 199 } | 198 } |
| 200 }); | 199 }); |
| 201 }) | 200 }) |
| 202 .then((client) { | 201 .then((client) { |
| 203 log.message('Successfully authorized.\n'); | 202 log.message('Successfully authorized.\n'); |
| 204 return client; | 203 return client; |
| 205 }); | 204 }); |
| 206 } | 205 } |
| OLD | NEW |