Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: use raw http response bytes #233

Merged
merged 1 commit into from
Feb 25, 2024
Merged

perf: use raw http response bytes #233

merged 1 commit into from
Feb 25, 2024

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Feb 24, 2024

reqwest::Response::text decodes the body with the "utf-8" charset

we can ignore this step and instead decode from the raw response directly.

this is also how Response::json is implemented

@mattsse mattsse changed the title perf: use raw response bytes perf: use raw http response bytes Feb 24, 2024
@mattsse mattsse merged commit 6f8ebb4 into main Feb 25, 2024
14 checks passed
@mattsse mattsse deleted the matt/use-bytes-body branch February 25, 2024 21:55
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