DescriptionAdd support for HTTP proxy in the HTTP client
An HttpClient instance now has the property findProxy. This
property can be set to a function which can return the proxy
configuration encoded in a string in the same format as is used
by browser PAC (proxy auto-config) scripts.
Currently only the first proxy in the list will be used. I will
address trying multiple proxies in a separate CL.
Also fixed a HTTP input stream bug revealed by the tests. If an
input stream from either a HttpRequest or HttpClientResponse
object is retreived after all data in the body has been received
the HTTP input stream would call the onClosed callback.
R=ajohnsen@google.com
BUG=dart:5468
TEST=tests/standalone/io/http_proxy_test.dart
Committed: https://code.google.com/p/dart/source/detail?r=13348
Patch Set 1 #Patch Set 2 : Minor fixes #
Total comments: 13
Patch Set 3 : Addressed review comments from ajohnsen@ #
Total comments: 14
Messages
Total messages: 6 (0 generated)
|