Clack.Component - Base Class for Clack Component.

SYNOPSIS

(in-package :cl-user)  
(defpackage clack.app.example  
  (:use :cl :clack)  
  (:export :<clack-app-example>))  
(in-package :clack.app.example)  
 
(defclass <clack-app-example> (<component>) ())  
(defmethod call ((this <clack-app-example>) env)  
  (declare (ignore this env))  
  `(200 (:content-type "text/plain") ("Hello, World!"))) 

DESCRIPTION

Clack.Component is the base class shared between Clack.Middleware and Clack Application.

You must implement clack.component:call as a method which is called when an HTTP request comes in and returns a response.

AUTHOR

SEE ALSO

EXTERNAL SYMBOLS