ring
ring copied to clipboard
add :resource multimethod for ring.util.response/resource-data
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.
Adding the suggested method worked for me. Time for a PR?
Bumped into this too when trying to build native image of pedestal app that used resources