Advertisement
Shinmera

WTF Hunchentoot

Jun 29th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.25 KB | None | 0 0
  1. (defvar *response* NIL)
  2.  
  3. (setf hunchentoot:*dispatch-table* (list #'handler))
  4. (hunchentoot:start (make-instance 'hunchentoot:easy-acceptor :port 4545))
  5.  
  6. (defun handler (request)
  7.   (let ((*response* "Hello World!"))
  8.      (lambda () *response*)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement