Re: HTTP request handler / middleware SRFI
Lassi Kortela 06 Apr 2019 00:08 UTC
This is great! I never expected so much enthusiasm for proposal.
Thank you for the very comprehensive notes. I added them to the wiki:
<https://github.com/schemeweb/wiki/wiki/Dispatcher-Router-API>
Can you and Peter compare your dispatcher designs to find out if it
would make sense to combine them?
> I hope this is helpful.
It certainly helps draw from a larger pool of designs. This insight from
Alan Perlis has been my favorite programming quote for years:
"Programmers are not to be measured by their ingenuity and their logic
but by the completeness of their case analysis."
> I'm excited by the idea of standardizing web request handlers. It would
> be great to make it easy for Scheme hackers to share web code across
> Scheme implementations and web servers.
Definitely. It ought to motivate Scheme implementors to brush up their
web server implementations/bindings :) And would be instrumental in
drawing more programmers into Scheme. It's so gratifying to get your
code to serve up a web page right away and then take the exact same code
and put it on a public-facing cloud server.