Clack - Web Application Environment for Common Lisp
Warning! Clack documentation page has moved to Quickdocs.org. This page might be outdated and/or inacurate anymore.
Clack is a web application environment for Common Lisp inspired by Python's WSGI and Ruby's Rack. Your awesome framework should base on this.
Usage
(defpackage simple-app
(:use :cl
:clack))
(in-package :simple-app)
(defvar *handler*
(clackup
#'(lambda (env)
'(200 (:content-type "text/plain") ("Hello, Clack!"))))) Now access http://localhost:5000/ and Clack should show you "Hello, Clack!".
To stop the server, execute (clack:stop *handler*).
Installation
Clack is available on Quicklisp.
(ql:quickload :clack)
Documentation
Server
- Hunchentoot
- Apache2 (mod_lisp2)
- FastCGI
Middleware
Middleware is one of the Clack Component. It takes another Application and runs it.
Bundle Middleware
- Clack.Middleware.Static - Serves static files.
- Clack.Middleware.Logger - Logging in Clack Application or Middleware.
- Clack.Middleware.Session - Session management.
Contrib Middleware
- Clack.Middleware.Dbi - Middleware for CL-DBI connection management.
- Clack.Middleware.Csrf - Provides easy way to protect from CSRF.
- Clack.Middleware.Auth.Basic - Basic Authentication Middleware.
- Clack.Middleware.Clsql - For CLSQL connection management.
- Clack.Middleware.Rucksack - For wrapping Rucksack transaction.
- Clack.Middleware.OAuth - Authorization by OAuth.
Author
- Eitarow Fukamachi (e.arrows@gmail.com)
Copyright
Copyright (c) 2011 Eitarow Fukamachi
Contributors
- Tomohiro Matsuyama (tomo@cx4a.org)
- Norihisa Fujita (n.fujita@ariel-networks.com)
License
Licensed under the LLGPL License.
API Reference
- Clack
- Clack.Builder
- Clack.Request
- Clack.Response
- Clack.Component
- Clack.Middleware
- Clack.Handler
- Clack.App.File
- Clack.App.Directory
- Clack.App.Urlmap
- Clack.Logger
- Clack.Logger.Base
- Clack.Logger.Stream
- Clack.Logger.File
- Clack.Middleware.Logger
- Clack.Middleware.Static
- Clack.Middleware.Conditional
- Clack.Session.State
- Clack.Session.State.Cookie
- Clack.Session.Store
- Clack.Middleware.Session
- Clack.Middleware.Stdout
- Clack.Util.Doc
- Clack.Util
- Clack.Util.Stream
- Clack.Util.Localtime
- Clack.Util.Rfc2388
- Clack.Util.Hunchentoot
- Clack.Util.Route
- Clack.Handler.Hunchentoot
- Clack.Handler.Fcgi
- Clack.Test
- Clack.Test.Suite
- Clack.Middleware.Auth.Basic
- Clack.Middleware.Clsql
- Clack.Middleware.Csrf
- Clack.Middleware.Dbi
- Clack.Middleware.Oauth
- Clack.Middleware.Rucksack
- Clack.App.Route