Skip to content

Avoid concatenating responses before writing#27

Open
mateocabanal wants to merge 1 commit intomainfrom
opt/response-send-no-concat
Open

Avoid concatenating responses before writing#27
mateocabanal wants to merge 1 commit intomainfrom
opt/response-send-no-concat

Conversation

@mateocabanal
Copy link
Copy Markdown
Owner

Summary

  • stream the status line, headers, and body directly to the socket
  • remove the intermediate full-response Vec<u8> allocation from the synchronous send path
  • preserve the existing public send behavior and signature

Notes

This keeps the change intentionally small. The async send path is left untouched for a separate follow-up PR.

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