ring icon indicating copy to clipboard operation
ring copied to clipboard

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

Open yogthos opened this issue 6 years ago • 2 comments

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.

yogthos avatar May 14 '19 02:05 yogthos

Adding the suggested method worked for me. Time for a PR?

cap10morgan avatar Aug 25 '21 20:08 cap10morgan

Bumped into this too when trying to build native image of pedestal app that used resources

agorgl avatar Nov 09 '22 08:11 agorgl