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

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: Created 6 years, 9 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
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..eb805ce46b872eb97da44aebac99247bc3a802d1 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> extraParams})
: 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(
+ extraParams != null ? extraParams: {}))) {
if (method.isEmpty) throw new ArgumentError('method cannot be empty.');
if (scriptName.isNotEmpty && !scriptName.startsWith('/')) {

Powered by Google App Engine
This is Rietveld 408576698