Skip to content

cover every body kind in the dart http_rest client - #292

Merged
eburgos merged 2 commits into
masterfrom
dart-client-body-kinds
Sep 6, 2026
Merged

cover every body kind in the dart http_rest client#292
eburgos merged 2 commits into
masterfrom
dart-client-body-kinds

Conversation

@eburgos

@eburgos eburgos commented Sep 6, 2026

Copy link
Copy Markdown
Owner

The Dart client reaches parity on body kinds. Bytes operations return their composed header_out values through the same header-reading helper the JSON path uses (the two cannot drift). Streamed operations answer ({String? contentRange, Stream<List<int>> body})null at the declared status, the read-back text at 206 — named from dart:async alone, wrapped in the usual tuple when header_out composes. Multipart builds its parts list from carried fields plus part(...)-bound arguments crossing as dynamic. The body-kind matches are exhaustive again.

Six new string-level tests over three new fixtures; the 17 existing Dart client tests pass unmodified. Gate: just lint, just test-named-features, all-features clippy, cargo test --all-features all green.

The bytes arm returns its composed header_out values instead of
dropping them, through the same header-reading helper the json path
uses so the two cannot drift. A streamed operation answers a record
of content range and byte stream - null at the declared status, the
read-back text at 206 - the one shape a Dart record can carry for
both streamed answers, named from dart:async alone. A multipart
operation builds its parts list from carried fields and part-bound
arguments, the file handles crossing as dynamic through the same
path an unknown type already renders by. The body-kind matches are
exhaustive again and the module doc says so truthfully.
@eburgos
eburgos merged commit 819ec81 into master Sep 6, 2026
@eburgos
eburgos deleted the dart-client-body-kinds branch September 6, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant