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

Side by Side Diff: sdk/lib/io/http.dart

Issue 513973003: Fix HttpServer documentation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 * 161 *
162 * The default value is `null`. 162 * The default value is `null`.
163 */ 163 */
164 String serverHeader; 164 String serverHeader;
165 165
166 /** 166 /**
167 * Default set of headers added to all response objects. 167 * Default set of headers added to all response objects.
168 * 168 *
169 * By default the following headers are in this set: 169 * By default the following headers are in this set:
170 * 170 *
171 * Content-Type: text/plain; charset=utf-8 171 * Content-Type: text/plain; charset=utf-8
172 * X-Frame-Options: SAMEORIGIN 172 * X-Frame-Options: SAMEORIGIN
173 * X-Content-Type-Options: nosniff 173 * X-Content-Type-Options: nosniff
174 * X-XSS-Protection: 1; mode=block 174 * X-XSS-Protection: 1; mode=block
175 * 175 *
176 * If the `Server` header is added here and the `serverHeader` is set as 176 * If the `Server` header is added here and the `serverHeader` is set as
177 * well then the value of `serverHeader` takes precedence. 177 * well then the value of `serverHeader` takes precedence.
178 */ 178 */
179 HttpHeaders get defaultResponseHeaders; 179 HttpHeaders get defaultResponseHeaders;
180 180
181 /** 181 /**
182 * Get or set the timeout used for idle keep-alive connections. If no further 182 * Get or set the timeout used for idle keep-alive connections. If no further
183 * request is seen within [idleTimeout] after the previous request was 183 * request is seen within [idleTimeout] after the previous request was
184 * completed, the connection is dropped. 184 * completed, the connection is dropped.
(...skipping 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 class RedirectException implements HttpException { 1977 class RedirectException implements HttpException {
1978 final String message; 1978 final String message;
1979 final List<RedirectInfo> redirects; 1979 final List<RedirectInfo> redirects;
1980 1980
1981 const RedirectException(this.message, this.redirects); 1981 const RedirectException(this.message, this.redirects);
1982 1982
1983 String toString() => "RedirectException: $message"; 1983 String toString() => "RedirectException: $message";
1984 1984
1985 Uri get uri => redirects.last.location; 1985 Uri get uri => redirects.last.location;
1986 } 1986 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698