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

Unified Diff: pkg/shelf/lib/src/request.dart

Issue 226263007: issue 17992 Added extra params to message (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: review updates. Renamed extraParams to context. Updated comment 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 | « pkg/shelf/lib/src/message.dart ('k') | pkg/shelf/lib/src/response.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/shelf/lib/src/request.dart
diff --git a/pkg/shelf/lib/src/request.dart b/pkg/shelf/lib/src/request.dart
index 75ef8653e1c23c6126ddc5de822bcfa3396d4fb8..f103a66b63fa36d73241067398ba6e9a149c8322 100644
--- a/pkg/shelf/lib/src/request.dart
+++ b/pkg/shelf/lib/src/request.dart
@@ -68,10 +68,13 @@ class Request extends Message {
Request(this.pathInfo, String queryString, this.method,
this.scriptName, this.protocolVersion, this.requestedUri,
- Map<String, String> headers, {Stream<List<int>> body})
+ Map<String, String> headers, {Stream<List<int>> body,
+ Map<String, Object> context})
: this.queryString = queryString == null ? '' : queryString,
super(new pc.UnmodifiableMapView(new HashMap.from(headers)),
- body == null ? new Stream.fromIterable([]) : body) {
+ body == null ? new Stream.fromIterable([]) : body,
+ new pc.UnmodifiableMapView(new HashMap.from(
+ context != null ? context: {}))) {
if (method.isEmpty) throw new ArgumentError('method cannot be empty.');
if (scriptName.isNotEmpty && !scriptName.startsWith('/')) {
« no previous file with comments | « pkg/shelf/lib/src/message.dart ('k') | pkg/shelf/lib/src/response.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698