Skip to content

examples: Use axum::body::to_bytes#650

Open
tottoto wants to merge 1 commit intotower-rs:mainfrom
tottoto:axum-body-to-bytes
Open

examples: Use axum::body::to_bytes#650
tottoto wants to merge 1 commit intotower-rs:mainfrom
tottoto:axum-body-to-bytes

Conversation

@tottoto
Copy link
Contributor

@tottoto tottoto commented Feb 17, 2026

axum::body::to_bytes could be used to collect the response body.

Copy link
Member

@jplatte jplatte left a comment

Choose a reason for hiding this comment

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

Why, to get rid of the extra dependency? I think I'd prefer the current code for clarity (limiting to usize::MAX is a bit weird).

@tottoto
Copy link
Contributor Author

tottoto commented Feb 17, 2026

Since this is an example of axum, it would make sense to use axum's functionality.

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.

2 participants