Skip to content

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

Open

Description

@yogthos

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.

Activity

  1. cap10morgan commented on Aug 25, 2021

    @cap10morgan

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

  2. agorgl commented on Nov 9, 2022

    @agorgl
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions