OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 part of dart.io; | 5 part of dart.io; |
6 | 6 |
7 /** | 7 /** |
8 * HTTP status codes. | 8 * HTTP status codes. |
9 */ | 9 */ |
10 abstract class HttpStatus { | 10 abstract class HttpStatus { |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 * the request body is not known in advance this -1. | 659 * the request body is not known in advance this -1. |
660 */ | 660 */ |
661 int get contentLength; | 661 int get contentLength; |
662 | 662 |
663 /** | 663 /** |
664 * Returns the method for the request. | 664 * Returns the method for the request. |
665 */ | 665 */ |
666 String get method; | 666 String get method; |
667 | 667 |
668 /** | 668 /** |
669 * Returns the URI for the request. | 669 * Returns the URI for the request. This provides access to the |
| 670 * path, query string and fragment identifier for the request. |
670 */ | 671 */ |
671 Uri get uri; | 672 Uri get uri; |
672 | 673 |
673 /** | 674 /** |
674 * Returns the parsed query string. | |
675 */ | |
676 Map<String, String> get queryParameters; | |
677 | |
678 /** | |
679 * Returns the request headers. | 675 * Returns the request headers. |
680 */ | 676 */ |
681 HttpHeaders get headers; | 677 HttpHeaders get headers; |
682 | 678 |
683 /** | 679 /** |
684 * Returns the cookies in the request (from the Cookie headers). | 680 * Returns the cookies in the request (from the Cookie headers). |
685 */ | 681 */ |
686 List<Cookie> get cookies; | 682 List<Cookie> get cookies; |
687 | 683 |
688 /** | 684 /** |
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1374 class RedirectLimitExceededException extends RedirectException { | 1370 class RedirectLimitExceededException extends RedirectException { |
1375 const RedirectLimitExceededException(List<RedirectInfo> redirects) | 1371 const RedirectLimitExceededException(List<RedirectInfo> redirects) |
1376 : super("Redirect limit exceeded", redirects); | 1372 : super("Redirect limit exceeded", redirects); |
1377 } | 1373 } |
1378 | 1374 |
1379 | 1375 |
1380 class RedirectLoopException extends RedirectException { | 1376 class RedirectLoopException extends RedirectException { |
1381 const RedirectLoopException(List<RedirectInfo> redirects) | 1377 const RedirectLoopException(List<RedirectInfo> redirects) |
1382 : super("Redirect loop detected", redirects); | 1378 : super("Redirect loop detected", redirects); |
1383 } | 1379 } |
OLD | NEW |