Clack.Response - Portable HTTP Response object for Clack response.

SYNOPSIS

(defvar res nil)  
 
(setf res (make-response 200))  
(setf res (make-response 200 '(:content-type "text/html")))  
(setf res (make-response 200 '(:content-type "text/html") '("aiueo")))  
 
;; Access each fields  
(status res)  
;;=> 200  
(headers res)  
;;=> (:content-type "text/html")  
(headers res :content-type)  
;;=> "text/html"  
(body res)  
;;=> ("aiueo")  
 
;; Set to each fields  
(setf (status res) 304)  
(setf (headers res :content-type) "text/plain")  
(setf (body res) '("moved"))  
(setf (body res) "moved") ;; string also allowed 

DESCRIPTION

Clack.Response allows you a way to create Clack response.

AUTHOR

EXTERNAL SYMBOLS