| 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 pubserver.shelf_pubserver; | 5 library pub_server.shelf_pubserver; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 | 9 |
| 10 import 'package:logging/logging.dart'; | 10 import 'package:logging/logging.dart'; |
| 11 import 'package:mime/mime.dart'; | 11 import 'package:mime/mime.dart'; |
| 12 import 'package:pub_semver/pub_semver.dart'; | 12 import 'package:pub_semver/pub_semver.dart'; |
| 13 import 'package:shelf/shelf.dart' as shelf; | 13 import 'package:shelf/shelf.dart' as shelf; |
| 14 import 'package:yaml/yaml.dart'; | 14 import 'package:yaml/yaml.dart'; |
| 15 | 15 |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 | 392 |
| 393 Uri _uploadSimpleUrl(Uri url) { | 393 Uri _uploadSimpleUrl(Uri url) { |
| 394 return url.resolve('/api/packages/versions/newUpload'); | 394 return url.resolve('/api/packages/versions/newUpload'); |
| 395 } | 395 } |
| 396 | 396 |
| 397 Uri _finishUploadSimpleUrl(Uri url, {String error}) { | 397 Uri _finishUploadSimpleUrl(Uri url, {String error}) { |
| 398 var postfix = error == null ? '' : '?error=${Uri.encodeComponent(error)}'; | 398 var postfix = error == null ? '' : '?error=${Uri.encodeComponent(error)}'; |
| 399 return url.resolve('/api/packages/versions/newUploadFinish$postfix'); | 399 return url.resolve('/api/packages/versions/newUploadFinish$postfix'); |
| 400 } | 400 } |
| 401 } | 401 } |
| OLD | NEW |