Skip to content

feat(api): add HTTP protocol binding helpers - #159

Merged
xusd320 merged 2 commits into
mainfrom
xusd320/http-protocol-helper-exports
Nov 1, 2026
Merged

xusd320 merged 2 commits into
mainfrom
xusd320/http-protocol-helper-exports

Conversation

@xusd320

@xusd320 xusd320 commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add http.get/post/put/patch/delete/head/options(handler, options?) for named operations in http.* files.
  • Discover helper declarations before building routes while preserving the existing Request/Response runtime and api.* behavior.

Changes

  • Export the HTTP helper from @evjs/ev/api and recognize direct named, renamed, and namespace imports, including the EVJS facade.
  • Read the verb from the helper and validate static routing options and callable handlers.
  • Update English and Chinese routing documentation and add discovery, package-surface, middleware, SSE, HEAD, and OPTIONS coverage.

Validation

  • npm run check-types
  • npm run lint
  • npm test
  • Nine core packages built successfully.
  • Downstream EVJS: 123 Vitest files / 1408 tests passed using locally packed core packages; public types and full build passed.
  • git diff --check

Risk / rollout

  • Additive core API; existing HTTP descriptors, aggregate API routes, and server functions retain their behavior.
  • Publish the coordinated @evjs/* 0.3.29 package set before releasing the downstream facade that requires the helper.

Reviewer notes

  • Review the static helper recognition and the reuse of existing callable-handler validation.
  • OneAPI schema generation and additional protocol bindings remain in the downstream EVJS packages.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T06:50:10.035943Z bd1ba11 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@xusd320
xusd320 merged commit 389a7ef into main Nov 1, 2026
1 check 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