X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=doc%2Freadme.html;h=b8fce726b723c42cabb180d4bed9095de3fa724b;hb=d3e3d82683ad2dff8f22b7fe4b0ebf9eb7d25007;hp=4da26afcb4a6e5944d8439c9be14fcb2f8a6c558;hpb=49f84ccd7347606524722e1c064027bb7c96c3a6;p=cl-modlisp.git diff --git a/doc/readme.html b/doc/readme.html index 4da26af..b8fce72 100644 --- a/doc/readme.html +++ b/doc/readme.html @@ -1,4 +1,27 @@ cl-modlisp readme

cl-modlisp Documentation

Overview

cl-modlisp provides the Lisp side of the interface to Marc Battyani's mod_lisp apache module (http://www.fractalconcept.com).

Features

Prerequisites

Supported Platforms

Quickstart

Process Models

There are two process models

Usage

The demo.lisp file for examples of using cl-modlisp.

\ No newline at end of file +mod_lisp, cl-modlisp, and cl-kmrcl manually.
  • Add something like the below to httpd.conf and then restart apache
    LispServer 127.0.0.1 20123 "localhost"
    AddHandler lisp-handler .lsp
  • Start your Lisp implementation and load cl-modlisp with
    (asdf:operate 'asdf:load-op 'modlisp)
  • Start the server with
    (ml:modlisp-start :port 20123)
  • Try some demostration pages
    links http://localhost/fixed.lsp
    links http://localhost/debug.lsp
  • Shutdown the all cl-modlisp servers with
    (ml:modlisp-stop-all)
  • Process Models

    There are two process models

    Usage

    The demo.lisp file for examples of using cl-modlisp.

  • Overview
    cl-modlisp is a multi-threaded handler for HTTP requests forwarded by Marc Battyani's (http://www.fractalconcept.com) mod_lisp Apache module.
  • Design Goals
    cl-modlisp is designed as a thin layer to dispatch a mod_lisp request with multi-platform compatibility. Currently, cl-modlisp supports SBCL [multithreaded], CMUCL, AllegroCL, and Lispworks.
  • Dispatch model
    Extremely simple: All requests are forwarded to a single processor that is passed as a parameter to cl-modlisp's start-up function.
  • Configuration
    All configuration is set by passing keyword arguments to +modlisp-start
  • Processor function
    This function receives an argument of the 'command' alist and any +other arguments passed to modlisp-start as the :processor-args. The +'command' alist is an associative list of keys and values received +from modlisp. No preprocessing is done except that keys are converted +from strings to keywords forced to the default implementation case.
  • Default Processor
    The default processor is a simple demo command processor not intended for end-user.
  • URI Processing
    None. The raw URL is the value of the :url key in the command alist.
  • Responses
    Responses are written to modlisp:*modlisp-socket*. The raw HTTP/1.1 header needs to be generated by the application.
  • Utility functions
    A few utility functions are provided
  • Known issues
  • \ No newline at end of file