Chromium Code Reviews

Unified Diff: test/serve/utils.dart

Issue 1790503005: Provide and respect HTTP cache headers in pub serve. (Closed) Base URL: https://github.com/dart-lang/pub.git@master
Patch Set: Revise! Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « test/serve/does_not_cache_changed_asset.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/serve/utils.dart
diff --git a/test/serve/utils.dart b/test/serve/utils.dart
index bf760226b1f113ae899c3f1d54b92badd7e73a3e..9f95446353a64296777f9db7132a65bc2f3820bc 100644
--- a/test/serve/utils.dart
+++ b/test/serve/utils.dart
@@ -231,9 +231,10 @@ void endPubServe() {
/// invokes [callback] with the response.
///
/// [root] indicates which server should be accessed, and defaults to "web".
-Future<http.Response> scheduleRequest(String urlPath, {String root}) {
+Future<http.Response> scheduleRequest(String urlPath,
+ {String root, Map<String, String> headers}) {
return schedule(() {
- return http.get(_getServerUrlSync(root, urlPath));
+ return http.get(_getServerUrlSync(root, urlPath), headers: headers);
}, "request $urlPath");
}
« no previous file with comments | « test/serve/does_not_cache_changed_asset.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine