Skip to content

Commit dc8827d

Browse files
committed
feat(dynamite_runtime): Allow access to raw headers in DynamiteRawResponse
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent 08dfed5 commit dc8827d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/dynamite/dynamite_runtime/lib/src/dynamite_client.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,13 @@ class DynamiteRawResponse<B, H> {
156156
/// they are not expected to be serialized again.
157157
Object? _rawBody;
158158

159+
Map<String, Object?>? _rawHeaders;
160+
159161
/// Caches the serialized response headers for later serialization in [toJson].
160162
///
161163
/// Responses revived with [DynamiteRawResponse.fromJson] are not cached as
162164
/// they are not expected to be serialized again.
163-
Map<String, Object?>? _rawHeaders;
165+
Map<String, Object?>? get rawHeaders => _rawHeaders;
164166

165167
DynamiteResponse<B, H>? _response;
166168

0 commit comments

Comments
 (0)