ring-clojure / ring-clojure/ring
add :resource multimethod for ring.util.response/resource-data
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 3.9k
- Forks
- 528
- PR merge metrics
- No merged PRs in 30d
Description
When loading resources with GraalVM the protocol returned by the java.net.URL is "resource" instead of "jar". Mirroring the :jar resource-data multimethod would allow apps compiled with GraalVM to use wrap-resource to load resources from the image. Here's an example in a minimal project.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating ring.util.response/resource-data and the existing :jar multimethod. Compare its behavior with the GraalVM example linked in the issue, then add the corresponding :resource handling so wrap-resource can load resources from a GraalVM image. Done means the new dispatch works without changing existing :jar behavior; the payload does not name a test file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100