6 May 2008 ingvar   » (Master)

I found a way of testiung Hunchentoot handlers from the REPL. Unfortunately, it only works with a non-mod-lisp instance. It also relies of having the server instance to be tested in *hunchentoot* (not a problem for me, but you may want to check that). I'll have a rummage through the Hunchentoot source at some point and see if I can get it to work when mod_lisp is involved.


(defun hunchentest (uri)
  (let* ((hunchentoot:*server* *hunchentoot*)
         (hunchentoot:*reply* (make-instance 
'hunchentoot::reply))
         (hunchentoot:*request* (make-instance 
'hunchentoot::request
                                               :uri uri)))
    (funcall (essay-dispatcher hunchentoot:*request*)
             hunchentoot:*request*)))

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!