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

Unified Diff: pkg/http_parser/lib/src/http_date.dart

Issue 276823002: pkg/http_parser: created mini lib for http_date (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: changelog and pubspec tweaks Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/http_parser/lib/http_parser.dart ('k') | pkg/http_parser/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http_parser/lib/src/http_date.dart
diff --git a/pkg/http_parser/lib/http_parser.dart b/pkg/http_parser/lib/src/http_date.dart
similarity index 96%
copy from pkg/http_parser/lib/http_parser.dart
copy to pkg/http_parser/lib/src/http_date.dart
index f9d8b8f5f1d0cd21fa5d9186a015763f2d5c85c4..47ac547a8fe77df43804e75ad5a0a2af8d9e7f80 100644
--- a/pkg/http_parser/lib/http_parser.dart
+++ b/pkg/http_parser/lib/src/http_date.dart
@@ -6,9 +6,6 @@ library http_parser;
import 'package:string_scanner/string_scanner.dart';
-export 'src/media_type.dart';
-export 'src/web_socket.dart';
-
const _WEEKDAYS = const ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
const _MONTHS = const ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug",
"Sep", "Oct", "Nov", "Dec"];
@@ -20,7 +17,6 @@ final _monthRegExp =
new RegExp(r"Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec");
final _digitRegExp = new RegExp(r"\d+");
-// TODO(nweiz): Move this into an http_parser package.
/// Return a HTTP-formatted string representation of [date].
///
/// This follows [RFC 822](http://tools.ietf.org/html/rfc822) as updated by [RFC
@@ -45,7 +41,6 @@ String formatHttpDate(DateTime date) {
return buffer.toString();
}
-// TODO(nweiz): Move this into an http_parser package.
/// Parses an HTTP-formatted date into a UTC [DateTime].
///
/// This follows [RFC
« no previous file with comments | « pkg/http_parser/lib/http_parser.dart ('k') | pkg/http_parser/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698