<div dir="ltr">Gerry,<div><br></div><div style>hunchentoot:*dispatch-table* is part of the easy-handler framework (<a href="http://weitz.de/hunchentoot/#easy-handlers">http://weitz.de/hunchentoot/#easy-handlers</a>). If you want to use it, you'll have to instantiate a hunchentoot:easy-acceptor or hunchentoot:easy-ssl-acceptor.</div>
<div style><br></div><div style>HTH,</div><div style>Hans</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 13, 2013 at 10:27 AM, Gerry Weaver <span dir="ltr"><<a href="mailto:gerryw@compvia.com" target="_blank">gerryw@compvia.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello All,<br>
<br>
I am new to Lisp and I have been playing around with Hunchentoot. I don't seem to be able to get dispatch to work. I've tried several things, but to no avail. Should the following code work or have I missed something?<br>
<br>
<br>
(defparameter *httpsd* (hunchentoot:start (make-instance 'hunchentoot:ssl-acceptor<br>
:port 4443<br>
:ssl-certificate-file #p"/build/hunchentoot/server.crt"<br>
:ssl-privatekey-file #p"/build/hunchentoot/server.key"<br>
:document-root #p"/build/")))<br>
<br>
<br>
(defun upload-message ()<br>
(princ "Upload"))<br>
<br>
(push (hunchentoot:create-prefix-dispatcher "/upload" 'upload-message)<br>
hunchentoot:*dispatch-table*)<br>
<br>
A pointer in the right direction would be much appreciated.<br>
<br>
Thanks,<br>
Gerry<br>
_______________________________________________<br>
tbnl-devel site list<br>
<a href="mailto:tbnl-devel@common-lisp.net">tbnl-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/mailman/listinfo/tbnl-devel" target="_blank">http://common-lisp.net/mailman/listinfo/tbnl-devel</a><br>
</blockquote></div><br></div>