DartBot
DartBot
**Comment by [nex3](https://github.com/nex3)** --- The http package is based on a composition model where each layer (that is, a class implementing http.Client) is very simple and has a well-defined purpose....
_This comment was originally written by theburning...@gmail.com_ --- Hi, thanks for the explanation, that makes a lot of sense.
**Comment by [nex3](https://github.com/nex3)** --- Issue #10 has been merged into this issue.
**Comment by [seaneagan](https://github.com/seaneagan)** --- Doesn't `Future.timeout` solve this pretty well already? https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart-async.Future#id_timeout Example: http.read('http://google.com') .timeout(const Duration(seconds: 5)) .then(...);
**Comment by [kevmoo](https://github.com/kevmoo)** --- I don't think HttpTimeoutClient can accomplish what we want. Users would like to actually cancel the inflight request. dart:html has abort() on HttpRequest dart:io HttpClient* has...
**Comment by [kevmoo](https://github.com/kevmoo)** --- _Marked this as being blocked by dart-lang/sdk#22265._
**Comment by [anders-sandholm](https://github.com/anders-sandholm)** --- _Added [Area-Pkg](../labels/Area-Pkg), [Pkg-Http](../labels/Pkg-Http), [Triaged](../labels/Triaged) labels._
**Comment by [nex3](https://github.com/nex3)** --- The plan here for both http and shelf is to provide a way to access headers that preserves repetition for cases like this. Something like a...
_This comment was originally written by softwaredev...@gmail.com_ --- What about copying the API dart:io has? dart:io.HttpClientResponse: - List<Cookie> get cookies - HttpHeaders get headers dart:io.HttpHeaders seems quite a high-level general...
**Comment by [nex3](https://github.com/nex3)** --- The dart:io style of having an idiosyncratic Map-like object is much less usable than having an actual Map in terms of both interoperability and conceptual overhead....