
4 Dec
2006
4 Dec
'06
8:51 p.m.
On Mon, 4 Dec 2006 12:42:08 -0800, Cyrus Harmon <ch-tbnl@bobobeach.com> wrote:
What's the rationale behind a global dispatch table? It seems like it might be nicer to have a per-server dispatch table. I can't imagine that there would be a good reason not have access to the server object when accessing *dispatch-table*, although as currently structured process-request should probably take an additional argument for the server.
The rationale is that it's a leftover from the times when Hunchentoot was (based on) TBNL and TBNL was a single-server library. Have you seen *META-DISPATCHER*? http://weitz.de/hunchentoot/#*meta-dispatcher* Note that you always have access to the server object via the *SERVER* variable. Cheers, Edi.