OLD | NEW |
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_paser.authentication_challenge; | |
6 | |
7 import 'dart:collection'; | 5 import 'dart:collection'; |
8 | 6 |
9 import 'package:string_scanner/string_scanner.dart'; | 7 import 'package:string_scanner/string_scanner.dart'; |
10 | 8 |
11 import 'case_insensitive_map.dart'; | 9 import 'case_insensitive_map.dart'; |
12 import 'scan.dart'; | 10 import 'scan.dart'; |
13 import 'utils.dart'; | 11 import 'utils.dart'; |
14 | 12 |
15 /// A single challenge in a WWW-Authenticate header, parsed as per [RFC 2617][]. | 13 /// A single challenge in a WWW-Authenticate header, parsed as per [RFC 2617][]. |
16 /// | 14 /// |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 } | 142 } |
145 | 143 |
146 scanner.scan(whitespace); | 144 scanner.scan(whitespace); |
147 } | 145 } |
148 | 146 |
149 /// Creates a new challenge value with [scheme] and [parameters]. | 147 /// Creates a new challenge value with [scheme] and [parameters]. |
150 AuthenticationChallenge(this.scheme, Map<String, String> parameters) | 148 AuthenticationChallenge(this.scheme, Map<String, String> parameters) |
151 : parameters = new UnmodifiableMapView( | 149 : parameters = new UnmodifiableMapView( |
152 new CaseInsensitiveMap.from(parameters)); | 150 new CaseInsensitiveMap.from(parameters)); |
153 } | 151 } |
OLD | NEW |