lox / httpcache

An RFC7234 compliant golang http.Handler for caching HTTP responses
MIT License
264 stars 28 forks source link

Change store API to take a Reader in the Write method #4

Closed lox closed 10 years ago

lox commented 10 years ago

The previous API took an io.Writer into the Write method, which required closing to unlock the internal mutex. This API change is easier to lock at high concurrency and conveniently matches the Diskv api, which is the replacement for the FileStore internals.