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

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

Issue 11337019: Use patching for dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 8 years, 1 month 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
OLDNEW
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 /** 5 /**
6 * HTTP status codes. 6 * HTTP status codes.
7 */ 7 */
8 abstract class HttpStatus { 8 abstract class HttpStatus {
9 static const int CONTINUE = 100; 9 static const int CONTINUE = 100;
10 static const int SWITCHING_PROTOCOLS = 101; 10 static const int SWITCHING_PROTOCOLS = 101;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 /** 110 /**
111 * Sets the error handler that is called when a connection error occurs. 111 * Sets the error handler that is called when a connection error occurs.
112 */ 112 */
113 void set onError(void callback(e)); 113 void set onError(void callback(e));
114 114
115 /** 115 /**
116 * Set the timeout, in seconds, for sessions of this HTTP server. Default 116 * Set the timeout, in seconds, for sessions of this HTTP server. Default
117 * is 20 minutes. 117 * is 20 minutes.
118 */ 118 */
119 int set sessionTimeout(int timeout); 119 set sessionTimeout(int timeout);
Anders Johnsen 2012/10/30 10:43:06 Oops, ty! :)
120 } 120 }
121 121
122 122
123 /** 123 /**
124 * Access to the HTTP headers for requests and responses. In some 124 * Access to the HTTP headers for requests and responses. In some
125 * situations the headers will be imutable and the mutating methods 125 * situations the headers will be imutable and the mutating methods
126 * will then throw exceptions. 126 * will then throw exceptions.
127 * 127 *
128 * For all operation on HTTP headers the header name is 128 * For all operation on HTTP headers the header name is
129 * case-insensitive. 129 * case-insensitive.
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 396
397 abstract class HttpSession { 397 abstract class HttpSession {
398 /** 398 /**
399 * Get the id for the current session. 399 * Get the id for the current session.
400 */ 400 */
401 String get id; 401 String get id;
402 402
403 /** 403 /**
404 * Access the user-data associated with the session. 404 * Access the user-data associated with the session.
405 */ 405 */
406 Dynamic data; 406 dynamic data;
407 407
408 /** 408 /**
409 * Destroy the session. This will terminate the session and any further 409 * Destroy the session. This will terminate the session and any further
410 * connections with this id will be given a new id and session. 410 * connections with this id will be given a new id and session.
411 */ 411 */
412 void destroy(); 412 void destroy();
413 413
414 /** 414 /**
415 * Set a callback that will be called when the session is timed out. 415 * Set a callback that will be called when the session is timed out.
416 */ 416 */
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 class RedirectLimitExceededException extends RedirectException { 1050 class RedirectLimitExceededException extends RedirectException {
1051 const RedirectLimitExceededException(List<RedirectInfo> redirects) 1051 const RedirectLimitExceededException(List<RedirectInfo> redirects)
1052 : super("Redirect limit exceeded", redirects); 1052 : super("Redirect limit exceeded", redirects);
1053 } 1053 }
1054 1054
1055 1055
1056 class RedirectLoopException extends RedirectException { 1056 class RedirectLoopException extends RedirectException {
1057 const RedirectLoopException(List<RedirectInfo> redirects) 1057 const RedirectLoopException(List<RedirectInfo> redirects)
1058 : super("Redirect loop detected", redirects); 1058 : super("Redirect loop detected", redirects);
1059 } 1059 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698