Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cast HttpRequest and HttpClientResponse streams to List<int> #384

Merged

Conversation

tvolkert
Copy link
Contributor

In preparation for a change to HttpRequest and HttpClientResponse
whereby they'll implement Stream<Uint8List> rather than
Stream<List<int>>, this change casts those streams to
Stream<List<int>> before any calls to transform() those
streams.

This is a forwards-compatible change that should be a no-op for
existing usages.

dart-lang/sdk#36900
#383

In preparation for a change to HttpRequest and HttpClientResponse
whereby they'll implement `Stream<Uint8List>` rather than
`Stream<List<int>>`, this change casts those streams to
`Stream<List<int>>` before any calls to `transform()` those
streams.

This is a forwards-compatible change that should be a no-op for
existing usages.

dart-lang/sdk#36900
dart-lang#383
@athomas athomas merged commit dc528a3 into dart-lang:master Jun 11, 2019
@tvolkert tvolkert deleted the HttpRequest_and_HttpClientResponse_Stream branch June 12, 2019 15:58
tvolkert added a commit to tvolkert/co19 that referenced this pull request Jun 12, 2019
There were a few places where `.cast<List<int>>()` calls were
missed in dart-lang#384 and dart-lang#385, and likewise for `Datagram.data` in dart-lang#382.

Note that I had to change one of the tests of `Datagram.data`, since
the existing test was setting invalid values as the data (signed
integers or integers that didn't fit in 8-bytes).

dart-lang/sdk#36900
dart-lang#381
dart-lang#383
athomas pushed a commit that referenced this pull request Jun 12, 2019
There were a few places where `.cast<List<int>>()` calls were
missed in #384 and #385, and likewise for `Datagram.data` in #382.

Note that I had to change one of the tests of `Datagram.data`, since
the existing test was setting invalid values as the data (signed
integers or integers that didn't fit in 8-bytes).

dart-lang/sdk#36900
#381
#383
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants