I need to set multiple 'set-cookie' headers in Shelf, but since headers is a Map<String,String>
, setting the second one replaces the first and so on because keys are unique. How can I solve this in Dart?
Asked
Active
Viewed 707 times
6

Cristian Garcia
- 9,630
- 6
- 54
- 75
1 Answers
0
There is an open feature request https://code.google.com/p/dart/issues/detail?id=18844 and also https://code.google.com/p/dart/issues/detail?id=18845 Here is an implementation https://github.com/wstrange/shelf_simple_session/blob/master/lib/src/cookie.dart

Günter Zöchbauer
- 623,577
- 216
- 2,003
- 1,567