Commit Graph

149 Commits

Author SHA1 Message Date
nweiz@google.com 113bd79bc6 Make pkg/path 1.0.0 and upgrade dependencies appropriately.
All existing packages that use pkg/path (other than pkg/stack_trace,
which has already been updated) are compatible with both the pre-1.0
and post-1.0 path API, so I've marked their version constraints as
">=0.9.0 <2.0.0". I've also incremented their patch versions and I
intend to release new versions as soon as this CL lands.

R=alanknight@google.com, efortuna@google.com, jmesserly@google.com, rnystrom@google.com, scheglov@google.com

Review URL: https://codereview.chromium.org//110873002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31005 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 00:24:01 +00:00
nweiz@google.com 6611756318 Increment package versions for stack trace changes.
R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//110613003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30997 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-09 20:44:05 +00:00
nweiz@google.com cbbad67d58 Add stack chain support to pkg/watcher and pkg/http.
R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//94093007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30912 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-05 19:31:19 +00:00
sethladd@google.com f9ee246abe Create a first-cut for a README for http package
BUG=
R=nweiz@google.com, rnystrom@google.com

Review URL: https://codereview.chromium.org//89433002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30838 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-04 00:41:10 +00:00
nweiz@google.com a8a3c2a7f0 Stop working around issue 12780 in pkg/http.
R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//102973002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30828 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-03 22:05:31 +00:00
rnystrom@google.com 9e26a0fc10 Fix some static warnings.
BUG=
R=nweiz@google.com

Review URL: https://codereview.chromium.org//89493002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30682 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 22:59:07 +00:00
nweiz@google.com 9552f94822 Ensure that errors have stack traces attached.
This adds a stack trace argument to all [completeError] and [addError]
calls in pub and associated libraries.

R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//68493003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30332 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-16 01:19:39 +00:00
nweiz@google.com 557d1d5062 Fix an analyzer error in http and barback.
R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//62443006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30331 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-16 01:13:04 +00:00
nweiz@google.com d018e7308e Serialize binary barback assets using typed arrays.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//68103027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30324 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-16 00:09:30 +00:00
nweiz@google.com f4533a552b Add utility methods for sending non-form data in pkg/http.
R=rnystrom@google.com
BUG=8380

Review URL: https://codereview.chromium.org//65583004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30183 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-12 01:59:39 +00:00
dgrove@google.com 18ca7d0036 Re-land r29957 (add versions and constraints for packages and samples), with
SDK constraints bumped from 1.0.0 to 0.8.10+6 .

R=ricow@google.com, sigmund@google.com

Review URL: https://codereview.chromium.org//62473002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29986 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 18:28:22 +00:00
ajohnsen@google.com 61f6c51990 Revert "add versions and constraints for packages and samples"
This is currently blocking us from testing samples.

BUG=
R=kasperl@google.com

Review URL: https://codereview.chromium.org//59513007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29960 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 09:09:18 +00:00
jmesserly@google.com 02638c5760 add versions and constraints for packages and samples
- all packages at 0.9.0, except "analyzer" which had a version already
- dependencies at ">=0.9.0 <0.10.0" except analyzer is ">=0.10.0 <0.11.0"
- sdk constraint ">=1.0.0 <2.0.0"

R=sigmund@google.com

Review URL: https://codereview.chromium.org//59763006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29957 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 03:27:58 +00:00
ajohnsen@google.com a41a1f597a Fix style in pkg/http.
BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org//57653002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29791 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-04 07:18:06 +00:00
ajohnsen@google.com b47fc79190 Use BytesBuilder in pkg:http, when accumulating binary data.
This should speed up the library significant.

BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//47923022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29739 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 10:19:01 +00:00
floitsch@google.com 4be547c705 Adapt streams for additional stackTrace argument.
R=lrn@google.com

Review URL: https://codereview.chromium.org//25094002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28511 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 12:02:20 +00:00
whesse@google.com 428e84e7d4 Use Directory.systemTemp getter in pkg subdirectory of repository.
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//25731003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28218 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 13:12:10 +00:00
ajohnsen@google.com 1dba2c2cab Change Uri methods taking a decode argument, to now take an encoding.
This finished the integration of dart:convert into Uri.

BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//24122002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27426 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-12 11:09:38 +00:00
floitsch@google.com 74da0c7286 Remove usage of dart:json.
R=jmesserly@google.com, lrn@google.com, nweiz@google.com, rnystrom@google.com

Review URL: https://codereview.chromium.org//23596007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26789 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 14:05:11 +00:00
floitsch@google.com 1887b5ca49 Some more removals of dart:utf.
R=jmesserly@google.com, lrn@google.com, nweiz@google.com

Review URL: https://codereview.chromium.org//22909059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26712 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 13:18:34 +00:00
nweiz@google.com df5fec68eb Add encoding tests to pkg/http.
These were blocked on issue 6284.

R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//23450003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26667 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 20:50:27 +00:00
floitsch@google.com 35d7140e66 Remove Encoding-enum from dart:io and add interface in dart:convert.
BUG= http://dartbug.com/6284
BUG= http://dartbug.com/7966
R=nweiz@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//22872012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26632 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 10:37:25 +00:00
kevmoo@j832.com 18d38085ab pkg: analysis aided cleanup
Removed a lot of warnings and hints when opening many pkg projects in the editor

R=gram@google.com

Review URL: https://codereview.chromium.org//22284003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25831 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-06 20:42:04 +00:00
kevmoo@j832.com 5285b80b8a pkg/http tweaks
locking down MultipartRequest a bit
Removed superfluous import of dart:io and dart:isolate

R=nweiz@google.com

Review URL: https://codereview.chromium.org//19866007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25376 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-23 22:47:13 +00:00
gram@google.com fb62473ebf Add missing newline after Actual value in fail message.
Remove the BasMatcher class; it made some sense when we had both 'interface'
and 'class' but adds no value now.
Fix a comment in the CustomMatcher documentation.
Fix tests affected by these changes.

R=sigmund@google.com

Review URL: https://codereview.chromium.org//18442002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25356 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-23 19:48:26 +00:00
ajohnsen@google.com 2bd55c23c7 Keep track of when a socket has been destroyed
This adds the event CLOSED to RawSocket and RawServerSocket. This
event indicate that the underlying socket is now destroyed.

This is used to make Socket.close and ServerSocket.close return a
future which is completed when the unserlying socket is
destroyed. This can be used to start listening on the same port after
closing a server socket.

R=ajohnsen@google.com, kustermann@google.com

BUG=https://code.google.com/p/dart/issues/detail?id=4155

Review URL: https://codereview.chromium.org//14864009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25213 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-19 13:26:48 +00:00
rnystrom@google.com a9d24edd0f Rename "pathos" package to "path".
R=ajohnsen@google.com

Review URL: https://codereview.chromium.org//18356011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24964 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-12 17:54:48 +00:00
gram@google.com 50c5137e55 Change MatchState to Map.
R=sigmund@google.com

Review URL: https://codereview.chromium.org//17090006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24046 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 19:46:16 +00:00
ajohnsen@google.com 04b7752d32 Remove references to RedirectLimitExceededException.
BUG=

Review URL: https://codereview.chromium.org//15821013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23851 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 13:45:16 +00:00
ajohnsen@google.com 5ce3b9ddea Clean up dart:io exceptions.
- Introduce IOException.
- Remove HttpParserException.
- Merge RedirectLimitExceededException and RedirectLoopException into
RedirectException.
- Remove 'IO' from FileIOException, DirectoryIOException, LinkIOException
and SocketIOException.

BUG=https://code.google.com/p/dart/issues/detail?id=9955
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//16123036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23848 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 13:15:46 +00:00
ajohnsen@google.com 2149b3a859 Add 'Server' and 'User-Agent' default header fields.
They include the major and minor version of Dart.

BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//16758008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23844 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 11:54:15 +00:00
nweiz@google.com 526d551cd6 Stop working around issue 2644.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//16756002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23829 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 21:21:15 +00:00
nweiz@google.com ebaa28cfec Make my pkg packages warning-clean.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//16097013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23620 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 23:34:06 +00:00
lrn@google.com faa7227cec Make new StreamController be async by default.
Change all instances, except some tests, to be sync still.
Rename Multiplex to Broadcast everywhere.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//16125005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23453 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 06:07:39 +00:00
sgjesse@google.com 69df933ff3 Remove the HttpRequest.queryParameters getter
The parsed query parameters are now now available from the Uri object.

TBR=whesse@google.com

BUG=http://dartbug/2641

Review URL: https://codereview.chromium.org//15688013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23413 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 13:39:24 +00:00
sgjesse@google.com bb6d8c6d20 Remove library dart:crypto
Moved the contnet of dart:crypto to the package pkg/crypto.

R=dgrove@google.com, floitsch@google.com, iposva@google.com, nweiz@google.com
BUG=

Review URL: https://codereview.chromium.org//15820008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23322 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 07:29:29 +00:00
sgjesse@google.com 9d6a64e81b Merge the dart:uri library into dart:core and update the Uri class
This merges the dart:uri library into dart:core removing the dart:uri library. Besides moving the library the Url class has been changed.

* Removed existing Uri constructor as it was equivalent with Uri.parse
* Remamed constructor Uri.fromComponents to Uri
* Moved toplevel function encodeUriComponent to static method Uri.encodeComponent
* Moved toplevel function decodeUriComponent to static method Uri.decodeComponent
* Moved toplevel function encodeUri to static method Uri.encodeFull
* Moved toplevel function decodeUri to static method Uri.decodeFull
* Rename domain to host
* Added static methods Uri.encodeQueryComponent and Uri.decodeQueryComponent
* Added support for path generation and splitting
* Added support for query generation and splitting
* Added some level of normalization

R=floitsch@google.com, lrn@google.com, nweiz@google.com, scheglov@google.com
BUG=

Review URL: https://codereview.chromium.org//16019002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23266 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 13:35:01 +00:00
nweiz@google.com 47965dd901 Default to UTF-8 in the HTTP package.
This makes ByteStream.toStringStream respect its Encoding properly.
[decodeString] and [encodeString] are still unable to do so (see issue 6284).

BUG=10573
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//14958005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22805 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-16 18:32:56 +00:00
sgjesse@google.com f13b6178e1 Change fromString constructor to parse static method
on HeaderValue and ContentType.

R=ajohnsen@google.com
BUG=

Review URL: https://codereview.chromium.org//14914002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22406 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-06 07:30:02 +00:00
ajohnsen@google.com 8fbfc5288d Use 'localhost' instead of '127.0.0.1', as IPv6 connections now can occur.
BUG=

Review URL: https://codereview.chromium.org//14766006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22245 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 13:24:26 +00:00
sgjesse@google.com 2fdb878ebe Change the signature for all network bind calls.
All the bind calls on RawServerSocket, ServerSocket,
RawSecureServerSocket, SecureServerSocket and HttpServer (and
bindSecure on HttpServer) now have mandatory address and port
parameters. All the rest of the parameters are named optional
(including backlog).

The address parameter can be an InternetAddress or a String for all
these calls.

R=ajohnsen@google.com, whesse@google.com
BUG=

Review URL: https://codereview.chromium.org//14640008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22227 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 09:14:04 +00:00
kustermann@google.com 0cea864629 Only stop HTTP server if it was actually started.
Review URL: https://codereview.chromium.org//14052008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21939 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 11:32:27 +00:00
ajohnsen@google.com 55963a1a6d Add new InternetAddress class with a static lookup function (including IPv6
results).

Reapply of https://codereview.chromium.org/13880029/ with fixes.

BUG=

Review URL: https://codereview.chromium.org//14469002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21934 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 09:26:58 +00:00
ajohnsen@google.com 60946b53fc Revert "Add new InternetAddress class with a static lookup function (including IPv6 results)."
Revert "Attempt to fix strict align issue."
Revert "Trying another fix."

BUG=

Review URL: https://codereview.chromium.org//14036017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21928 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 08:10:00 +00:00
ajohnsen@google.com 20d1f5ddda Add new InternetAddress class with a static lookup function (including IPv6 results).
Reapply of https://codereview.chromium.org/14083007/ with fixes.

BUG=

Review URL: https://codereview.chromium.org//13880029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21923 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 07:12:05 +00:00
ager@google.com 431954b584 Rename dart:typeddata to dart:typed_data.
R=asiva@google.com, floitsch@google.com, srdjan@google.com
BUG=

Review URL: https://codereview.chromium.org//14426006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21871 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 11:54:54 +00:00
sethladd@google.com 8fd2c2e5ea add installation instructions to pkg packages
BUG=

Review URL: https://codereview.chromium.org//14188048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21770 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 20:51:10 +00:00
nweiz@google.com 89cb31e4c4 Fix some warnings in pub and pkg packages.
Review URL: https://codereview.chromium.org//13817008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21701 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-18 20:24:47 +00:00
floitsch@google.com 466d6670c1 Refactor Future constructors.
BUG=

Review URL: https://codereview.chromium.org//14070010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21517 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 21:24:27 +00:00
floitsch@google.com 5431a5af54 Remove AsyncError with Expando.
Review URL: https://codereview.chromium.org//14251006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21498 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:58:32 +00:00