http-get-cache
2018-02-28
Common Lisp library for caching HTTP GET responses
Upstream URL
Author
Michael J. Forster <mike@forsterfamily.ca>
License
MIT
http-get-cache
http-get-cache is a Common Lisp library based on the Drakma HTTP client for caching HTTP GET responses.
http-get-cache depends on Drakma and Bordeaux Threads.
http-get-cache is being developed with SBCL, CCL, and LispWorks on OS X. http-get-cache is being deployed with SBCL on FreeBSD/AMD64 and Linux/AMD64.
Installation
(ql:quickload "http-get-cache")
Example
(defvar *cache* (http-get-cache:make-cache 60)) (http-get-cache:http-get "http://planet.lisp.org/" *cache*) #S(HTTP-GET-CACHE:RESPONSE :STATUS-CODE 200 :HEADERS ((:SERVER . "nginx/1.9.0") (:DATE . "Thu, 16 Mar 2017 04:56:47 GMT") (:CONTENT-TYPE . "text/html") (:CONTENT-LENGTH . "128383") (:LAST-MODIFIED . "Thu, 16 Mar 2017 04:15:56 GMT") (:CONNECTION . "close") (:ETAG . "\"58ca117c-1f57f\"") (:ACCEPT-RANGES . "bytes")) :BODY "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"> <html> <head> <title>Planet Lisp</title> ... </html> " :TIMESTAMP 3698629006)
License
http-get-cache is distributed under the MIT license. See LICENSE.