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

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

Issue 177843002: Don't set serverHeader by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | sdk/lib/io/http_impl.dart » ('j') | 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 * 77 *
78 * HttpServer.bind(InternetAddress.ANY_IP_V6, 80).then((server) { 78 * HttpServer.bind(InternetAddress.ANY_IP_V6, 80).then((server) {
79 * server.listen((HttpRequest request) { 79 * server.listen((HttpRequest request) {
80 * // Handle requests. 80 * // Handle requests.
81 * }); 81 * });
82 * }); 82 * });
83 */ 83 */
84 abstract class HttpServer implements Stream<HttpRequest> { 84 abstract class HttpServer implements Stream<HttpRequest> {
85 /** 85 /**
86 * Set and get the default value of the `Server` header for all responses 86 * Set and get the default value of the `Server` header for all responses
87 * generated by this [HttpServer]. The default value is 87 * generated by this [HttpServer]. By default, it's disabled.
88 * `Dart/<version> (dart:io)`.
89 * 88 *
90 * If the serverHeader is set to `null`, no default `Server` header will be 89 * If the serverHeader is set to `null`, no default `Server` header will be
91 * added to each response. 90 * added to each response.
92 */ 91 */
93 String serverHeader; 92 String serverHeader;
94 93
95 /** 94 /**
96 * Get or set the timeout used for idle keep-alive connections. If no further 95 * Get or set the timeout used for idle keep-alive connections. If no further
97 * request is seen within [idleTimeout] after the previous request was 96 * request is seen within [idleTimeout] after the previous request was
98 * completed, the connection is dropped. 97 * completed, the connection is dropped.
(...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after
1612 class RedirectException implements HttpException { 1611 class RedirectException implements HttpException {
1613 final String message; 1612 final String message;
1614 final List<RedirectInfo> redirects; 1613 final List<RedirectInfo> redirects;
1615 1614
1616 const RedirectException(this.message, this.redirects); 1615 const RedirectException(this.message, this.redirects);
1617 1616
1618 String toString() => "RedirectException: $message"; 1617 String toString() => "RedirectException: $message";
1619 1618
1620 Uri get uri => redirects.last.location; 1619 Uri get uri => redirects.last.location;
1621 } 1620 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698