OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 /// HTTP client. Only supported when Fletch is running on a Posix platform. | 5 /// HTTP client. Only supported when Fletch is running on a Posix platform. |
6 library http; | 6 library http; |
7 | 7 |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
10 | 10 |
11 import 'package:charcode/ascii.dart'; | 11 import 'package:charcode/ascii.dart'; |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 | 293 |
294 static bool _isChar(int char) => char >= 32 && char <= 126; | 294 static bool _isChar(int char) => char >= 32 && char <= 126; |
295 static bool _isDigit(int char) => char >= $0 && char <= $9; | 295 static bool _isDigit(int char) => char >= $0 && char <= $9; |
296 | 296 |
297 static bool _isSeparator(int char) { | 297 static bool _isSeparator(int char) { |
298 // TODO(ajohnsen): "(" | ")" | "<" | ">" | "@" | "," | ";" | ":" | | 298 // TODO(ajohnsen): "(" | ")" | "<" | ">" | "@" | "," | ";" | ":" | |
299 // "\" | <"> | "/" | "[" | "]" | "?" | "=" | "{" | "}" | SP | HT | 299 // "\" | <"> | "/" | "[" | "]" | "?" | "=" | "{" | "}" | SP | HT |
300 return char == $space || char == $slash || char == $colon; | 300 return char == $space || char == $slash || char == $colon; |
301 } | 301 } |
302 } | 302 } |
OLD | NEW |