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

Http conn req res inline #2074

Merged
merged 3 commits into from
Jan 6, 2025
Merged

Http conn req res inline #2074

merged 3 commits into from
Jan 6, 2025

Conversation

gdamore
Copy link
Contributor

@gdamore gdamore commented Jan 6, 2025

fixes #

Note that the above format should be used in your git commit comments.
You agree that by submitting a PR, you have read and agreed to our
contributing guidelines.

This is a step towards simplifying this API and ultimately simplifying
the HTTP callback API used for the server side.
@gdamore gdamore force-pushed the http-conn-req-res-inline branch from 552943d to 2ff83eb Compare January 6, 2025 06:39
Copy link

codecov bot commented Jan 6, 2025

Codecov Report

Attention: Patch coverage is 76.21951% with 39 lines in your changes missing coverage. Please review.

Project coverage is 82.94%. Comparing base (e5d5b62) to head (f42d0c6).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/supplemental/http/http_msg.c 58.62% 24 Missing ⚠️
src/supplemental/http/http_server.c 83.33% 10 Missing ⚠️
src/supplemental/http/http_public.c 66.66% 4 Missing ⚠️
src/supplemental/websocket/websocket.c 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2074      +/-   ##
==========================================
- Coverage   82.99%   82.94%   -0.05%     
==========================================
  Files          94       94              
  Lines       23698    23694       -4     
  Branches     3054     3052       -2     
==========================================
- Hits        19669    19654      -15     
- Misses       3949     3959      +10     
- Partials       80       81       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gdamore gdamore force-pushed the http-conn-req-res-inline branch from 126984c to 902bd0f Compare January 6, 2025 20:26
This simplified API lets callbacks obtain the response from the
connection objection directly, and does not require the aio to carry
it as a parameter.  Further, the request and response are both
stored inline in the connection, reducing allocations.

This is at present only for the server; the client will get a similar
set of changes.
@gdamore gdamore force-pushed the http-conn-req-res-inline branch from 902bd0f to f42d0c6 Compare January 6, 2025 21:58
@gdamore gdamore merged commit f42d0c6 into main Jan 6, 2025
35 of 37 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.

1 participant