Skip to content

Commit 96c31dc

Browse files
committed
Update the comment on data of FunctionResponse and export ByteStream
1 parent e9f2217 commit 96c31dc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
library functions_client;
22

3+
export 'package:http/http.dart' show ByteStream;
4+
35
export 'src/functions_client.dart';
46
export 'src/types.dart';

packages/functions_client/lib/src/types.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import 'dart:convert';
22
import 'dart:typed_data';
33

4+
import 'package:http/http.dart';
5+
46
enum HttpMethod {
57
get,
68
post,
@@ -14,6 +16,7 @@ class FunctionResponse {
1416
/// - 'text/plain': [String]
1517
/// - 'octet/stream': [Uint8List]
1618
/// - 'application/json': dynamic ([jsonDecode] is used)
19+
/// - 'text/event-stream': [ByteStream]
1720
final dynamic data;
1821
final int status;
1922

0 commit comments

Comments
 (0)