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

Unified Diff: test/test_util.dart

Issue 966063003: Overhaul the semantics of Request.handlerPath and Request.url. (Closed) Base URL: git@github.com:dart-lang/shelf@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 side-by-side diff with in-line comments
Download patch
« lib/src/request.dart ('K') | « test/shelf_io_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test_util.dart
diff --git a/test/test_util.dart b/test/test_util.dart
index 281989b364cc0e11cc7cc6a5e3ddd0b174f28296..bc0674860c44c59121cf8a7bbda5f0d796324764 100644
--- a/test/test_util.dart
+++ b/test/test_util.dart
@@ -23,7 +23,7 @@ Response syncHandler(Request request, {int statusCode,
Map<String, String> headers}) {
if (statusCode == null) statusCode = 200;
return new Response(statusCode, headers: headers,
- body: 'Hello from ${request.url.path}');
+ body: 'Hello from ${request.requestedUri.path}');
}
/// Calls [syncHandler] and wraps the response in a [Future].
« lib/src/request.dart ('K') | « test/shelf_io_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698