[hunchentoot-devel] Need help with basic dispatch
Hans Hübner
hans.huebner at gmail.com
Wed Feb 13 09:51:06 UTC 2013
Gerry,
hunchentoot:*dispatch-table* is part of the easy-handler framework (
http://weitz.de/hunchentoot/#easy-handlers). If you want to use it, you'll
have to instantiate a hunchentoot:easy-acceptor or
hunchentoot:easy-ssl-acceptor.
HTH,
Hans
On Wed, Feb 13, 2013 at 10:27 AM, Gerry Weaver <gerryw at compvia.com> wrote:
> Hello All,
>
> 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?
>
>
> (defparameter *httpsd* (hunchentoot:start (make-instance
> 'hunchentoot:ssl-acceptor
> :port 4443
> :ssl-certificate-file
> #p"/build/hunchentoot/server.crt"
> :ssl-privatekey-file
> #p"/build/hunchentoot/server.key"
> :document-root #p"/build/")))
>
>
> (defun upload-message ()
> (princ "Upload"))
>
> (push (hunchentoot:create-prefix-dispatcher "/upload" 'upload-message)
> hunchentoot:*dispatch-table*)
>
> A pointer in the right direction would be much appreciated.
>
> Thanks,
> Gerry
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20130213/5fbac6c9/attachment.html>
More information about the Tbnl-devel
mailing list