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

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

Issue 598453003: Add HttpServer:autoCompress option, to disable auto gzip compression. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add 'To disable, ...' 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 | 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 and set if the [HttpServer] should auto-compress the content, when
Lasse Reichstein Nielsen 2014/09/23 07:24:52 Other documentation doesn't use "get and set". Thi
Anders Johnsen 2014/09/23 08:35:34 Done.
183 * possible.
184 *
185 * The [HttpServer] will only compress when the response is using chunked
186 * Transfer-Encoding and the incoming request has `gzip` set in the
187 * Accept-Encoding header.
188 *
189 * To disable, set to `false`.
Lasse Reichstein Nielsen 2014/09/23 07:24:52 Combine the two short paragrahps? "The default val
Anders Johnsen 2014/09/23 08:35:34 Done.
190 *
191 * The default value is `true`.
Søren Gjesse 2014/09/23 07:56:23 I know the current default is true, but we should
Anders Johnsen 2014/09/23 08:35:34 Done.
192 */
193 bool autoCompress;
Lasse Reichstein Nielsen 2014/09/23 07:24:52 If you can enable and disable it, should it still
Anders Johnsen 2014/09/23 08:35:34 Done.
194
195 /**
182 * Get or set the timeout used for idle keep-alive connections. If no further 196 * 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 197 * request is seen within [idleTimeout] after the previous request was
184 * completed, the connection is dropped. 198 * completed, the connection is dropped.
185 * 199 *
186 * Default is 120 seconds. 200 * Default is 120 seconds.
187 * 201 *
188 * Note that it may take up to `2 * idleTimeout` before a idle connection is 202 * Note that it may take up to `2 * idleTimeout` before a idle connection is
189 * aborted. 203 * aborted.
190 * 204 *
191 * To disable, set [idleTimeout] to `null`. 205 * To disable, set [idleTimeout] to `null`.
(...skipping 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 class RedirectException implements HttpException { 1991 class RedirectException implements HttpException {
1978 final String message; 1992 final String message;
1979 final List<RedirectInfo> redirects; 1993 final List<RedirectInfo> redirects;
1980 1994
1981 const RedirectException(this.message, this.redirects); 1995 const RedirectException(this.message, this.redirects);
1982 1996
1983 String toString() => "RedirectException: $message"; 1997 String toString() => "RedirectException: $message";
1984 1998
1985 Uri get uri => redirects.last.location; 1999 Uri get uri => redirects.last.location;
1986 } 2000 }
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