Skip to content

Commit

Permalink
Add functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Mar 28, 2024
1 parent 2e83488 commit 77844c4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkgs/http_profile/lib/src/http_client_request_profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,13 @@ final class HttpClientRequestProfile {
responseData = HttpProfileResponseData._(_data, _updated);
_data['requestBodyBytes'] = <int>[];
requestData._body.stream.listen(
(final bytes) => (_data['requestBodyBytes'] as List<int>).addAll(bytes),
);
(final bytes) => (_data['requestBodyBytes'] as List<int>).addAll(bytes),
onError: (e) {});
_data['responseBodyBytes'] = <int>[];
responseData._body.stream.listen(
(final bytes) => (_data['responseBodyBytes'] as List<int>).addAll(bytes),
);
(final bytes) =>
(_data['responseBodyBytes'] as List<int>).addAll(bytes),
onError: (e) {});
// This entry is needed to support the updatedSince parameter of
// ext.dart.io.getHttpProfile.
_updated();
Expand Down

0 comments on commit 77844c4

Please sign in to comment.