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

Support move semantics for Response::set_content() #1764

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

jimmy-park
Copy link
Contributor

When we respond with a pre-allocated/temporary std::string variable, this method avoids an unnecessary memory copy.
It helps us to transfer large data without using content providers.

@yhirose yhirose merged commit 44b3fe6 into yhirose:master Jan 27, 2024
4 checks passed
@yhirose
Copy link
Owner

yhirose commented Jan 27, 2024

Thanks!

@jimmy-park jimmy-park deleted the support-move-semantics branch January 27, 2024 12:54
zhaokeli pushed a commit to zhaokeli/cpp-httplib that referenced this pull request Oct 10, 2024
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