Common Lisp Package: CLACK.COMPONENT

# 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 * Eitarow Fukamachi (e.arrows@gmail.com) ## SEE ALSO * Clack.Middleware

README:

GENERIC-FUNCTION

Public

CALL (COMP ENV)

Invoke component. Designed to be overriden in subclasses.

Undocumented

MAKE-APP (COMP)

CLASS

Public

<COMPONENT>

Base Class for Clack Component shared between <middleware> and Clack Application.