Make ResponseContext *explicitly* implement StreamConsumer

This commit is contained in:
Tobe O 2019-05-30 23:52:07 -04:00
parent 49942cc841
commit 07d1ce0944
2 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,6 @@
# 2.0.2
* Make `ResponseContext` *explicitly* implement `StreamConsumer` (though technically it already did???)
# 2.0.1
* Tracked down a bug in `Driver.runPipeline` that allowed fallback
handlers to run, even after the response was closed.

View file

@ -18,7 +18,7 @@ final RegExp _straySlashes = RegExp(r'(^/+)|(/+$)');
/// A convenience wrapper around an outgoing HTTP request.
abstract class ResponseContext<RawResponse>
implements StreamSink<List<int>>, StringSink {
implements StreamConsumer<List<int>>, StreamSink<List<int>>, StringSink {
final Map properties = {};
final CaseInsensitiveMap<String> _headers = CaseInsensitiveMap<String>.from({
'content-type': 'text/plain',