rnystrom@google.com
0bc9b19740
Rename BadNumberFormatException -> FormatException.
...
Review URL: https://chromiumcodereview.appspot.com//10850034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10354 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 20:56:59 +00:00
floitsch@google.com
a51dc25968
Make isUtc a getter, change some method names in Date. Weekday is now 1 based.
...
isUtc is now a getter.
Date.hours -> Date.hour
Date.minutes -> Date.minute
Date.seconds -> Date.second
Date.milliseconds -> Date.millisecond
Date.fromEpoch -> Date.fromMillisecondsSinceEpoch
Date.value -> Date.millisecondsSinceEpoch
Date.MON == 1 (up to Date.SUN == 7).
Fixes issue 3444, 1985.
Review URL: https://chromiumcodereview.appspot.com//10538105
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8899 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 11:43:46 +00:00
sgjesse@google.com
5a08f212a2
Support for cookies in the HTTP library
...
This change adds the list field cookies to all requests and
responses.
For HttpRequest the cookie list will have all the cookies set by
the client in its HttpClientRequest cookie list. These cookies
are passed through the "Cookie" HTTP header.
For HttpClientResponse the cookie list will have all the cookies
set by the server in the HttpResponse cookie list. These cookies
are passed through the "Set-Cookie" HTTP header.
The parsing of the "Cookie" and "Set-Cookie" headers try to
follow RFC 6265.
This change does not add a cookie jar in the http client with
cookie policy for automatic cookie handling.
R=ager@google.com , ajohnsen@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10414076
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7943 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-24 13:03:31 +00:00
floitsch@google.com
a88e304d29
Deprecate use of timezones.
...
Review URL: https://chromiumcodereview.appspot.com//10411057
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7911 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 16:07:35 +00:00
sgjesse@google.com
179db55867
Re-apply "Fix URL decoding in HTTP library"
...
Now URL decoding works for non-ASCII URLs and will be UTF-8 decoded.
Added an additional import to lib/compiler/implementation/lib/io.dart
for the tests to compile with dart2js.
TBR=ager@google.com
BUG=dart:2902
TEST=tests/standalone/io/url_encoding_test.dart
Review URL: https://chromiumcodereview.appspot.com//10391135
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7644 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 08:57:21 +00:00
sgjesse@google.com
839f6e0587
Revert "Fix URL decoding in HTTP library"
...
Issues with dart2js tests.
TBR=ager@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10382148
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7600 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 10:26:12 +00:00
sgjesse@google.com
0086312006
Fix URL decoding in HTTP library
...
Now URL decoding works for non-ASCII URLs and will be UTF-8 decoded.
R=ager@google.com
BUG=dart:2902
TEST=tests/standalone/io/url_encoding_test.dart
Review URL: https://chromiumcodereview.appspot.com//10387082
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7599 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 09:58:27 +00:00
sgjesse@google.com
144e6d044c
Add handling of HTTP header "Expires"
...
The value of the "Expires" header is now available as a property on
the HttpResponse and the HttpClientResponse.
Added formatting of dates as HTTP dates in RFC 1123 format and parsing
of HTTP dates in all three formats mentioned in RFC 2616.
R=ajohnsen@google.com
BUG=none
TEST=tests/standalone/src/io/HttpDateTest.dart
Review URL: https://chromiumcodereview.appspot.com//9602011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5016 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-06 11:24:11 +00:00
sgjesse@google.com
b29e72fdbd
Make the HttpParser and HttpUtil classes private
...
Move to separate files for sourcing these in the tests.
R=ager@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9581011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4934 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-05 08:04:04 +00:00