Helper to get body parts from a streaming client response #2183
Labels
good first issue
Good for newcomers
kind/usability
Usability of generated code, ergonomics.
🆕 semver/minor
Adds new public API.
size/S
Small task. (A couple of hours of work.)
The
StreamingClientResponse
type has anaccepted
property which holds a result, the success case of which holds theContents
of the body of the response which in turn holds abodyParts
async sequence.This isn't very ergonomic to get!
We should add a computed property called
bodyParts
toStreamingClientResponse
which returns it to us (or throws).The text was updated successfully, but these errors were encountered: