Skip to content

fetch: add serverKit for server runtimes - #5690

Draft
mcollina wants to merge 1 commit into
mainfrom
server-kit
Draft

fetch: add serverKit for server runtimes#5690
mcollina wants to merge 1 commit into
mainfrom
server-kit

Conversation

@mcollina

Copy link
Copy Markdown
Member

Exposes a single frozen serverKit namespace (via the Node.js bundle entry point only) with the fetch internals a server runtime needs to build Request/Response subclasses without the public constructors: kConstruct, HeadersList, headers list/guard accessors, and request/response state accessors.

No behavior changes; the request/response modules only gain exports for accessors they already define.

Needed by Node.js core's http.serve() to construct per-request fetch objects cheaply (nodejs/node PR to follow).

Expose a single frozen namespace with the internals a server runtime
needs to build Request/Response subclasses without the public
constructors (kConstruct, HeadersList, headers list/guard accessors,
request/response state accessors). Exported only through the Node.js
bundle entry point. No behavior changes.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.46%. Comparing base (8f9cc1d) to head (cb878fa).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5690      +/-   ##
==========================================
- Coverage   93.46%   93.46%   -0.01%     
==========================================
  Files         110      111       +1     
  Lines       38777    38838      +61     
==========================================
+ Hits        36241    36298      +57     
- Misses       2536     2540       +4     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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