8000 Routing mechanism for webservers by istathar · Pull Request #154 · aesiniath/unbeliever · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Routing mechanism for webservers #154

8000
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

Merged
merged 12 commits into from
Oct 17, 2022
Merged

Conversation

istathar
Copy link
Member

Introduce new module Core.Webserver.Router containing a simple mechanism for routing HTTP requests to handler functions.

Using this allows a developer to avoid needing to rely on more complex packages like servant if their routing needs are straight-forward.

@istathar istathar added the core-webserver Issues involving wrappers around web frameworks label Oct 17, 2022
@istathar istathar self-assigned this Oct 17, 2022
@istathar istathar marked this pull request as ready for review October 17, 2022 13:18
@istathar istathar added the improvement New feature or request label Oct 17, 2022
@istathar
Copy link
Member Author

Here's the API shape now:

image

you pass that to prepareRoutes and you're on your way.

@istathar istathar merged commit caa8791 into aesiniath:main Oct 17, 2022
@istathar istathar deleted the webserver-router branch October 17, 2022 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-webserver Issues involving wrappers around web frameworks improvement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0