ring.middleware.partial-content
Partial Content middleware for ring.
wrap-partial-content
(wrap-partial-content app)
Wrap an app such that a request for a range will respond with a 206 Partial Content response with the appropriate headers set and the body trimmed accordingly. Only single byte range requests and original 200 OK responses with Content-Length set and a File, InputStream or String body will be handled. This wrapper works fine with ring.middleware.file.wrap-file.