Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Side by Side Diff: pkg/pub_server/lib/shelf_pubserver.dart

Issue 917793002: Use pub_server package (Closed) Base URL: git@github.com:dart-lang/pub-dartlang-dart.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/pub_server/lib/repository.dart ('k') | pkg/pub_server/pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/pub_server/lib/repository.dart ('k') | pkg/pub_server/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698