Chromium Code Reviews

Side by Side Diff: test/lish/utils.dart

Issue 1585513002: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « test/io_test.dart ('k') | test/lock_file_test.dart » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 lish.utils;
6
7 import 'dart:convert'; 5 import 'dart:convert';
8 6
9 import 'package:pub/src/io.dart'; 7 import 'package:pub/src/io.dart';
10 import 'package:scheduled_test/scheduled_test.dart'; 8 import 'package:scheduled_test/scheduled_test.dart';
11 import 'package:scheduled_test/scheduled_server.dart'; 9 import 'package:scheduled_test/scheduled_server.dart';
12 import 'package:shelf/shelf.dart' as shelf; 10 import 'package:shelf/shelf.dart' as shelf;
13 11
14 12
15 void handleUploadForm(ScheduledServer server, [Map body]) { 13 void handleUploadForm(ScheduledServer server, [Map body]) {
16 server.handle('GET', '/api/packages/versions/new', (request) { 14 server.handle('GET', '/api/packages/versions/new', (request) {
(...skipping 20 matching lines...)
37 void handleUpload(ScheduledServer server) { 35 void handleUpload(ScheduledServer server) {
38 server.handle('POST', '/upload', (request) { 36 server.handle('POST', '/upload', (request) {
39 // TODO(nweiz): Once a multipart/form-data parser in Dart exists, validate 37 // TODO(nweiz): Once a multipart/form-data parser in Dart exists, validate
40 // that the request body is correctly formatted. See issue 6952. 38 // that the request body is correctly formatted. See issue 6952.
41 return drainStream(request.read()) 39 return drainStream(request.read())
42 .then((_) => server.url) 40 .then((_) => server.url)
43 .then((url) => new shelf.Response.found(url.resolve('/create'))); 41 .then((url) => new shelf.Response.found(url.resolve('/create')));
44 }); 42 });
45 } 43 }
46 44
OLDNEW
« no previous file with comments | « test/io_test.dart ('k') | test/lock_file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine