Wookie 是一个用 Common Lisp 编写的异步 HTTP 服务器,基于 cl-asynchttp-parse 构建。

示例代码:

(defpackage :wookie-test
  (:use :cl :wookie))
(in-package :wookie-test)

;; load Wookie's core plugins
(load-plugins)

;; define our homepage route
(defroute (:get "/") (req res)
  (send-response res :body "Thanks for stopping by!"))

;; start serving Requests!
(as:with-event-loop ()
  (start-server (Make-instance 'listener :port 80)))


Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务