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

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

Issue 10855197: Fix HttpHeaders.date and add HttpHeaders.ifModifiedSince. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also parse other date values to a Http date format. Created 8 years, 4 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') | 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) 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 /** 279 /**
280 * Disable folding for the header named [name] when sending the HTTP 280 * Disable folding for the header named [name] when sending the HTTP
281 * header. By default, multiple header values are folded into a 281 * header. By default, multiple header values are folded into a
282 * single header line by separating the values with commas. The 282 * single header line by separating the values with commas. The
283 * Set-Cookie header has folding disabled by default. 283 * Set-Cookie header has folding disabled by default.
284 */ 284 */
285 void noFolding(String name); 285 void noFolding(String name);
286 286
287 /** 287 /**
288 * Gets and sets the date. The value of this property will 288 * Gets and sets the date. The value of this property will
289 * reflect the "Date" header 289 * reflect the "Date" header.
290 */ 290 */
291 Date date; 291 Date date;
292 292
293 /** 293 /**
294 * Gets and sets the expiry date. The value of this property will 294 * Gets and sets the expiry date. The value of this property will
295 * reflect the "Expires" header 295 * reflect the "Expires" header.
296 */ 296 */
297 Date expires; 297 Date expires;
298 298
299 /** 299 /**
300 * Gets and sets the 'if-modified-since' date. The value of this property will
301 * reflect the "if-modified-since" header.
302 */
303 Date ifModifiedSince;
304
305 /**
300 * Gets and sets the host part of the "Host" header for the 306 * Gets and sets the host part of the "Host" header for the
301 * connection. 307 * connection.
302 */ 308 */
303 String host; 309 String host;
304 310
305 /** 311 /**
306 * Gets and sets the port part of the "Host" header for the 312 * Gets and sets the port part of the "Host" header for the
307 * connection. 313 * connection.
308 */ 314 */
309 int port; 315 int port;
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 class RedirectLimitExceededException extends RedirectException { 934 class RedirectLimitExceededException extends RedirectException {
929 const RedirectLimitExceededException(List<RedirectInfo> redirects) 935 const RedirectLimitExceededException(List<RedirectInfo> redirects)
930 : super("Redirect limit exceeded", redirects); 936 : super("Redirect limit exceeded", redirects);
931 } 937 }
932 938
933 939
934 class RedirectLoopException extends RedirectException { 940 class RedirectLoopException extends RedirectException {
935 const RedirectLoopException(List<RedirectInfo> redirects) 941 const RedirectLoopException(List<RedirectInfo> redirects)
936 : super("Redirect loop detected", redirects); 942 : super("Redirect loop detected", redirects);
937 } 943 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698