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

Side by Side Diff: lib/src/case_insensitive_map.dart

Issue 1580233004: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/http_parser@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « lib/src/authentication_challenge.dart ('k') | lib/src/copy/bytes_builder.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library http_parser.case_insensitive_map;
6
7 import 'package:collection/collection.dart'; 5 import 'package:collection/collection.dart';
8 6
9 /// A map from case-insensitive strings to values. 7 /// A map from case-insensitive strings to values.
10 /// 8 ///
11 /// Much of HTTP is case-insensitive, so this is useful to have pre-defined. 9 /// Much of HTTP is case-insensitive, so this is useful to have pre-defined.
12 class CaseInsensitiveMap<V> extends CanonicalizedMap<String, String, V> { 10 class CaseInsensitiveMap<V> extends CanonicalizedMap<String, String, V> {
13 CaseInsensitiveMap() 11 CaseInsensitiveMap()
14 : super((key) => key.toLowerCase(), isValidKey: (key) => key != null); 12 : super((key) => key.toLowerCase(), isValidKey: (key) => key != null);
15 13
16 CaseInsensitiveMap.from(Map<String, V> other) 14 CaseInsensitiveMap.from(Map<String, V> other)
17 : super.from(other, (key) => key.toLowerCase(), 15 : super.from(other, (key) => key.toLowerCase(),
18 isValidKey: (key) => key != null); 16 isValidKey: (key) => key != null);
19 } 17 }
OLDNEW
« no previous file with comments | « lib/src/authentication_challenge.dart ('k') | lib/src/copy/bytes_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698