apple / apple/swift-http-api-proposal

[AsyncStreaming] How can we tell whether the span in `collect(upTo:body:)` is truncated or not?

Open
#52 2 comments 0 reactions 0 assignees View on GitHub
async-streaming
Dominant language
Swift
Stars
66
Forks
21
Avg merge
7h 39m
Merged PRs (30d)
2

Description

Conceptually, I consider `collect` a once-and-done operation, and the limit is a hard memory limit to not go past. It should throw an error if the full data exceeds the limit. Currently the data is silently truncated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.