(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!"))) 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.
Base Class for Clack Component shared betweenand Clack Application.
Invoke component. Designed to be overriden in subclasses.
Functions should be called like Component.
Create a function to call this component.