OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // Global constants. | 5 // Global constants. |
6 class _Const { | 6 class _Const { |
7 // Bytes for "HTTP". | 7 // Bytes for "HTTP". |
8 static const HTTP = const [72, 84, 84, 80]; | 8 static const HTTP = const [72, 84, 84, 80]; |
9 // Bytes for "HTTP/1.". | 9 // Bytes for "HTTP/1.". |
10 static const HTTP1DOT = const [72, 84, 84, 80, 47, 49, 46]; | 10 static const HTTP1DOT = const [72, 84, 84, 80, 47, 49, 46]; |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 Function dataEnd; | 724 Function dataEnd; |
725 Function error; | 725 Function error; |
726 } | 726 } |
727 | 727 |
728 | 728 |
729 class HttpParserException implements Exception { | 729 class HttpParserException implements Exception { |
730 const HttpParserException([String this.message = ""]); | 730 const HttpParserException([String this.message = ""]); |
731 String toString() => "HttpParserException: $message"; | 731 String toString() => "HttpParserException: $message"; |
732 final String message; | 732 final String message; |
733 } | 733 } |
OLD | NEW |