Clack

Common Lisp 的 web 服务器抽象层。「Web server abstraction layer for Common Lisp」

Github星跟蹤圖

Clack - Web Application Environment for Common Lisp

Build Status
Coverage Status
Quicklisp dist

Clack is a web application environment for Common Lisp inspired by Python's WSGI and Ruby's Rack.

Usage

(defvar *handler*
    (clack:clackup
      (lambda (env)
        (declare (ignore env))
        '(200 (:content-type "text/plain") ("Hello, Clack!")))))

Open your web browser and go to http://localhost:5000/. You should get "Hello, Clack!".

To stop the server, use (clack:stop *handler*).

Command-line interface

Clack provides a script to start a web server. It's useful when you deploy to production environment.

NOTE: Install Roswell before as it depends on it.

When you execute ros install clack, it copies clackup script to $HOME/.roswell/bin. Make sure the path is in your shell $PATH.

$ ros install clack
$ which clackup
/Users/nitro_idiot/.roswell/bin/clackup

$ cat <<EOF >> app.lisp
(lambda (env)
  (declare (ignore env))
  '(200 (:content-type "text/plain") ("Hello, Clack!")))
EOF
$ clackup app.lisp
Hunchentoot server is started.
Listening on localhost:5000.

Installation

(ql:quickload :clack)

Documentation

Server

How to contribute

See CONTRIBUTING.md.

See Also

  • Lack: Clack application builder

Author

Copyright (c) 2011-2015 Eitaro Fukamachi & contributors

License

Licensed under the LLGPL License.

主要指標

概覽
名稱與所有者fukamachi/clack
主編程語言Common Lisp
編程語言Common Lisp (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2011-01-12 09:24:58
推送於2024-11-01 00:55:30
最后一次提交2024-11-01 00:55:16
發布數13
最新版本名稱12.06.0 (發布於 )
第一版名稱11.06.0 (發布於 )
用户参与
星數1.1k
關注者數67
派生數87
提交數1.2k
已啟用問題?
問題數122
打開的問題數28
拉請求數62
打開的拉請求數3
關閉的拉請求數5
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?