ring-clojure / ring-clojure/ring

add :resource multimethod for ring.util.response/resource-data

Open
#370 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.