Description
On the web HttpRequest
supports abort
: https://api.dart.dev/stable/2.8.1/dart-html/HttpRequest/abort.html
We have a proposal for adding abort on the dart:io
HttpClientRequest
: https://dart-review.googlesource.com/c/sdk/+/147339
We need to come up with a design for supporting abort
through the interfaces in this package and validate that we can build it on both dart:html
and dart:io
implementations.
The easiest option might be to add a method on StreamedResponse
. There is some precedent for that with IOStreamedResponse.detachSocket
.
http/lib/src/io_streamed_response.dart
Line 36 in 9063ba3
I do wonder if we need to consider some sort of support for the more convenient methods than send
though...
cc @kevmoo @jakemac53 @grouma @zichangg @lrhn for thoughts
Activity