ring-clojure / ring

Clojure HTTP server abstraction
MIT License
3.75k stars 519 forks source link

Add :max-size option to byte-array-store #443

Open nickmertin opened 3 years ago

nickmertin commented 3 years ago

Related to #297. Not marking as "fixes" because this only applies to byte-array-store, not temp-file-store.

Does what it says in the title. I recognize that this does overlap in intended features with #98, but given the lack of activity there I figured I may as well submit the solution that I created for my own project. I believe this is self-contained enough that it should be feasible to merge as-is.

weavejester commented 3 years ago

Could org.apache.commons.io.input.BoundedInputStream be used instead of a proxy?