Skip to content

Rename known_length to known_padded_bhttp_req_length - #9

Merged
arminsabouri merged 1 commit into
fungi-protocol:masterfrom
Ayoazeez26:rename-known-length
Oct 23, 2026
Merged

arminsabouri merged 1 commit into
fungi-protocol:masterfrom
Ayoazeez26:rename-known-length

Conversation

@Ayoazeez26

@Ayoazeez26 Ayoazeez26 commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Renames OhttpClient::known_length and WasmOhttpClient::known_length to known_padded_bhttp_req_length, along with the corresponding field of Error::KnownLengthTooSmall.

"Known length" reads like the BHTTP known-length framing mode rather than the size each inner request is padded to.

Breaking change: callers of .known_length(..) (e.g. fungi-protocol/fungi#141) need updating.

Suggested in fungi-protocol/fungi#141 (comment)

Closes #8

The failing msrv job is tracked in #7.

@arminsabouri

Copy link
Copy Markdown
Collaborator

@Ayoazeez26 thanks for picking up this ticket! Merged #10 so this branch needs a rebase

"Known length" is ambiguous: it reads like the BHTTP known-length
framing mode rather than the size each inner request is padded to.
Name it after what it sets.

This is a breaking change to OhttpClient and WasmOhttpClient, and to
the field of Error::KnownLengthTooSmall.

Suggested in fungi-protocol/fungi#141 (comment)

Closes fungi-protocol#8
@Ayoazeez26

Copy link
Copy Markdown
Contributor Author

@arminsabouri happy to help! Successfully rebased.

@arminsabouri arminsabouri left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK a124cad

@arminsabouri
arminsabouri merged commit 35f4662 into fungi-protocol:master Oct 23, 2026
2 of 3 checks passed
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.

Rename known_length to known_padded_bhttp_req_length

2 participants