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

Request ability to get the handler to have ESRequest and ESResponse classes like Xojo Web #13

Open
sworteu opened this issue Mar 16, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@sworteu
Copy link
Owner

sworteu commented Mar 16, 2024

For th next Express releases i would like to focus on getting 2 classes so that it becomes easier to use Express coming from Xojo Web and back.

So i'd like to have the delegate being defined like:
RequestHandlerDelegate( req As ESRequest, res As ESResponse )

ES is the prefix for Express Server.
The ESRequest class limits (but would provide enough) the ability to make errors and provides easy request context data.
The ESResponse class provides everything needed to build a good response but keep it easy and clear to use.

This change would be major since it would require the delegate to change and the flow.

With this change it would be much easier to exchange code from Express and to Xojo Web.
With an additonal bonus is that the Xojo docs could probably become a partly reference as the code matches more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant