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

Side by Side Diff: runtime/bin/http.dart

Issue 10191013: Add handling of the HTTP Date header (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | runtime/bin/http_impl.dart » ('j') | runtime/bin/http_impl.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 interface HttpStatus { 8 interface HttpStatus {
9 static final int CONTINUE = 100; 9 static final int CONTINUE = 100;
10 static final int SWITCHING_PROTOCOLS = 101; 10 static final int SWITCHING_PROTOCOLS = 101;
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 /** 271 /**
272 * Remove all values for the specified header name. Some headers 272 * Remove all values for the specified header name. Some headers
273 * have system supplied values and for these the system supplied 273 * have system supplied values and for these the system supplied
274 * values will still be added to the collection of values for the 274 * values will still be added to the collection of values for the
275 * header. 275 * header.
276 */ 276 */
277 void removeAll(String name); 277 void removeAll(String name);
278 278
279 /** 279 /**
280 * Gets and sets the date. The value of this property will
281 * reflect the "Date" header
282 */
283 Date date;
284
285 /**
280 * Gets and sets the expiry date. The value of this property will 286 * Gets and sets the expiry date. The value of this property will
281 * reflect the "Expires" header 287 * reflect the "Expires" header
282 */ 288 */
283 Date expires; 289 Date expires;
284 290
285 /** 291 /**
286 * Gets and sets the host part of the "Host" header for the 292 * Gets and sets the host part of the "Host" header for the
287 * connection. 293 * connection.
288 */ 294 */
289 String host; 295 String host;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 */ 541 */
536 InputStream get inputStream(); 542 InputStream get inputStream();
537 } 543 }
538 544
539 545
540 class HttpException implements Exception { 546 class HttpException implements Exception {
541 const HttpException([String this.message = ""]); 547 const HttpException([String this.message = ""]);
542 String toString() => "HttpException: $message"; 548 String toString() => "HttpException: $message";
543 final String message; 549 final String message;
544 } 550 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/http_impl.dart » ('j') | runtime/bin/http_impl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698