-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat(rest): expose app.requestHandler function #1084
Conversation
I'd like to get few more approvals before merging this pull request. Since I'll be away from the computer for the next 10 days, could somebody from the approvers land the pull request for me please? |
Code looks good BUT I would like for us to reconsider the name for this function.
|
@virkt25 thank you for a thoughtful comment. Let's review all different request-handling members we have in
In this light, I feel your proposals What I dislike about
On the other hand, we are not using Initially, I wanted the |
18fa3d3
to
aa5f5c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 I like the requestHandler
much much much better than httpHandler
👍
Each RestServer provides an HTTP handler function that can be used with the core HTTP server or any compatible framework like Express. This change exposes the handler function on the RestApplication class to simplify the usage. BREAKING CHANGE: `RestServer#handleHttp` was renamed to `RestServer#requestHandler`.
aa5f5c5
to
4a302f6
Compare
Each RestServer provides an HTTP handler function that can be used with core HTTP server or any compatible framework like Express.
This pull request exposes the handler function on the RestApplication class to simplify the usage.
See also:
Checklist
npm test
passes on your machinepackages/cli
were updatedpackages/example-*
were updated