API for remvee.ring.middleware.partial-content
by
Remco van 't Veer
Usage:
(ns your-namespace
(:require remvee.ring.middleware.partial-content))
Overview
Partial Content middleware for ring.
Public Variables and Functions
wrap-partial-content
function
Usage: (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.
Source