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 API refactoring #2075

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

HTTP API refactoring #2075

wants to merge 19 commits into from

Conversation

gdamore
Copy link
Contributor

@gdamore gdamore commented Jan 7, 2025

This is a work in progress -- refactoring the HTTP API entirely.

This function required the request and response to be preallocated
separately, which is a little awkward.  Instead, we have the
nng_http_conn_transact function.  This function does require a
connection to be established first, but then it is easier to manage.

This is part of overall goal of removing separate allocation and
removal of request and reply objects.
Starting to use methods to access the connection directly,
and using res inline.  Also inlined the aio on the HTTP transaction.
Copy link

codecov bot commented Jan 7, 2025

Codecov Report

Attention: Patch coverage is 77.35849% with 84 lines in your changes missing coverage. Please review.

Project coverage is 83.04%. Comparing base (446beac) to head (4fb5e4a).

Files with missing lines Patch % Lines
src/supplemental/http/http_conn.c 77.50% 36 Missing ⚠️
src/supplemental/http/http_msg.c 78.43% 22 Missing ⚠️
src/supplemental/http/http_public.c 62.85% 13 Missing ⚠️
src/supplemental/http/http_server.c 76.31% 9 Missing ⚠️
src/supplemental/websocket/websocket.c 66.66% 3 Missing ⚠️
src/supplemental/http/http_client.c 96.29% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2075      +/-   ##
==========================================
+ Coverage   82.91%   83.04%   +0.12%     
==========================================
  Files          94       94              
  Lines       23694    23697       +3     
  Branches     3052     3055       +3     
==========================================
+ Hits        19646    19678      +32     
+ Misses       3967     3939      -28     
+ Partials       81       80       -1     

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

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