Skip to content

Clarify empty data handling in the passthrough API - #217

Open
SuhrudhC wants to merge 2 commits into
python-hyper:masterfrom
SuhrudhC:docs/empty-chunk-passthrough
Open

SuhrudhC wants to merge 2 commits into
python-hyper:masterfrom
SuhrudhC:docs/empty-chunk-passthrough

Conversation

@SuhrudhC

Copy link
Copy Markdown

Clarify that send_with_data_passthrough() may omit empty data under chunked transfer encoding. Its unconditional payload identity guarantee currently conflicts with the intentional empty chunk behavior established in #21 and covered by the existing connection tests.

Eight public buffer controls confirm wire equivalence and the empty chunk exception. All 78 existing tests pass on macOS with Python 3.13.3. The executable AST is unchanged after removing docstrings.

Prepared with Codex assistance. Checks were executed by Codex. No production usage or personal human review is claimed.

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