http-get-cache

2018年02月28日

Common Lisp library for caching HTTP GET responses

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-cache60))
(http-get-cache:http-get"http://planet.lisp.org/" *cache*)
#S(HTTP-GET-CACHE:RESPONSE:STATUS-CODE200:HEADERS((:SERVER."nginx/1.9.0")(:DATE."2017年3月16日 04:56:47 GMT")(:CONTENT-TYPE."text/html")(:CONTENT-LENGTH."128383")(:LAST-MODIFIED."2017年3月16日 04:15:56 GMT")(:CONNECTION."close")(:ETAG."\"58ca117c-1f57f\"")(:ACCEPT-RANGES."bytes")):BODY"<!DOCTYPEHTMLPUBLIC \"-//W3C//DTDHTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">
<html>
<head>
<title>Planet Lisp</title>
...
</html>
":TIMESTAMP3698629006)

License

http-get-cache is distributed under the MIT license. See LICENSE.

Dependencies (1)

Dependents (0)

AltStyle によって変換されたページ (->オリジナル) /