Liking cljdoc? Tell your friends :D

ring.middleware.partial-content

Partial Content middleware for ring.

Partial Content middleware for ring.
raw docstring

can-slice?clj

(can-slice? value)
source

slicecljmultimethod

source

wrap-partial-contentclj

(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.

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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close