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

Unified Diff: dart/site/try/project_server.dart

Issue 225903003: Tokenize one line at a time. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address Kasper's comments Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/site/try/nossl.appcache ('k') | dart/site/try/src/interaction_manager.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/project_server.dart
diff --git a/dart/site/try/project_server.dart b/dart/site/try/project_server.dart
index d71d87043616f85c4c83ddfbddd485ad454fa755..08c5d565425f206d777c404842ecc524397d19d4 100644
--- a/dart/site/try/project_server.dart
+++ b/dart/site/try/project_server.dart
@@ -7,7 +7,8 @@ library trydart.projectServer;
import 'dart:io';
import 'dart:async' show
- Future;
+ Future,
+ Stream;
import 'dart:convert' show
HtmlEscape,
@@ -145,12 +146,6 @@ It is safe to delete tag '$GIT_TAG' if you don't need the backup.""";
response.close();
}
- redirect(String location) {
- response.statusCode = HttpStatus.FOUND;
- response.headers.add(HttpHeaders.LOCATION, location);
- response.close();
- }
-
badRequest(String problem) {
response.statusCode = HttpStatus.BAD_REQUEST;
response.write(htmlInfo("Bad request",
« no previous file with comments | « dart/site/try/nossl.appcache ('k') | dart/site/try/src/interaction_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698