Common Lisp Package: CLACK.HANDLER.HUNCHENTOOT

# Clack.Handler.Hunchentoot - Clack handler for Hunchentoot. ## SYNOPSIS (defpackage clack-sample (:use :cl :clack.handler.hunchentoot)) (in-package :clack-sample) ;; Start Server (run (lambda (env) '(200 nil ("ok"))) :port 5000) ## DESCRIPTION Clack.Handler.Hunchentoot is a Clack handler for the Lisp web server Hunchentoot. This package exports `run' and `stop'. ## AUTHOR Eitarow Fukamachi (e.arrows@gmail.com)

README:

FUNCTION

Public

RUN (APP &KEY DEBUG (PORT 5000))

Start Hunchentoot server.

STOP (ACCEPTOR)

Stop Hunchentoot server. If no acceptor is given, try to stop `*acceptor*' by default.

Private

HANDLE-RESPONSE (RES)

Convert Response from Clack application into a string before passing to Hunchentoot.

MAKE-EXTERNAL-FORMAT (NAME &REST ARGS &KEY (LITTLE-ENDIAN *DEFAULT-LITTLE-ENDIAN*) ID EOL-STYLE)

Creates and returns an external format object as specified. NAME is a keyword like :LATIN1 or :UTF-8, LITTLE-ENDIAN specifies the `endianess' of the external format and is ignored for 8-bit encodings, EOL-STYLE is one of the keywords :CR, :LF, or :CRLF which denote the end-of-line character (sequence), ID is the ID of a Windows code page (and ignored for other encodings).

REQUEST->PLIST (REQ)

Convert Request from server into a plist before passing to Clack application.

Undocumented

INITIALIZE

GENERIC-FUNCTION

Private

CALL (COMP ENV)

Invoke component. Designed to be overriden in subclasses.

Undocumented

ACCEPTOR-REQUEST-DISPATCHER (*ACCEPTOR*)

CLASS

Private

<DEBUGGABLE-ACCEPTOR>

An acceptor that handles errors by invoking the debugger.