I’ve written a fair number of sites with hunchentoot, cl-who, and parenscript. In each one, I write a couple of macros that look something like this:
Strangely I never seemed to remember that hunchentoot uses a seemingly sly method of capturing
*request* that would be very handy, not to mention simple, to implement.
Both of those calls to
request-method are correct and do the right thing. How?
The answer is probably obvious to you, but it took a fair bit of digging in the hunchentoot source to see it for myself.
First, at the top level, we have a simple
*request* is there, it just depends on it’s scope whether it’s bound or not.
My solution might be ham-handed, I’ll have to experiment more, but this is already a lot more simple than what I had before.