Commit 7ed974c 1 parent c5fa6f6 commit 7ed974c Copy full SHA for 7ed974c
File tree 2 files changed +2
-3
lines changed
packages/dynamite/dynamite_runtime/lib
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import 'package:xml/xml_events.dart';
12
12
final xmlConverter = XmlEventDecoder ().fuse (const XmlNormalizeEvents ()).fuse (const XmlNodeDecoder ());
13
13
14
14
/// Extension on byte streams that enable efficient transformations.
15
- @internal
16
15
extension HttpBytesStreamExtension on http.ByteStream {
17
16
/// Collects the data of this stream in a [Uint8List] .
18
17
///
@@ -35,7 +34,7 @@ extension HttpBytesStreamExtension on http.ByteStream {
35
34
36
35
/// Collect the data of this stream in [XmlElement] , decoded according to
37
36
/// [encoding] , which defaults to [utf8] .
38
- Future <Object ?> bytesToXml ([Encoding encoding = utf8]) async {
37
+ Future <XmlElement ?> bytesToXml ([Encoding encoding = utf8]) async {
39
38
final element = await encoding.decoder
40
39
.fuse (xmlConverter)
41
40
.bind (this )
@@ -52,7 +51,6 @@ extension HttpBytesStreamExtension on http.ByteStream {
52
51
/// charset is unknown.
53
52
///
54
53
/// Copied from `package:http` .
55
- @internal
56
54
Encoding encodingForHeaders (Map <String , String > headers) =>
57
55
_encodingForCharset (_contentTypeForHeaders (headers).parameters['charset' ]);
58
56
Original file line number Diff line number Diff line change 1
1
/// Utility functions used by the generated code.
2
2
library utils;
3
3
4
+ export 'src/utils/byte_stream_extension.dart' ;
4
5
export 'src/utils/codecs.dart' ;
5
6
export 'src/utils/some_of_validators.dart' ;
6
7
export 'src/utils/string_checker.dart' ;
You can’t perform that action at this time.
0 commit comments