Wookie異步 HTTP 服務(wù)器
Wookie 是一個(gè)用 Common Lisp 編寫的異步 HTTP 服務(wù)器,基于 cl-async 和 http-parse 構(gòu)建。
示例代碼:
(defpackage :my-app
(:use :cl :wookie))
(in-package :my-app)
;; 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)))評(píng)論
圖片
表情
