code: public static HttpFileBuilder ofResource(ClassLoader classLoader, String path) {
          requireNonNull(classLoader, "classLoader");
          requireNonNull(path, "path");
  
          // Strip the leading slash.
          if (path.startsWith("/")) {
              path = path.substring(1);
          }
  
          // Retrieve the resource URL.
          final URL url = classLoader.getResource(path);
          if (url == null || url.getPath().endsWith("/")) {
              // Non-existent resource.
              return new NonExistentHttpFileBuilder();
          }
  
          // Convert to a real file if possible.
          if ("file".equals(url.getProtocol())) {
              File f;
              try {
                  f = new File(url.toURI());
              } catch (URISyntaxException ignored) {
                  f = new File(url.getPath());
              }
  
              return of(f);
          }
  
          return new ClassPathHttpFileBuilder(url);
      }
docs: Returns a new {@link HttpFileBuilder} that builds an {@link HttpFile} from the classpath resource
  at the specified {@code path} using the specified {@link ClassLoader}.