start

public static PackHttpServer start(File packFile, int port, String pathPrefix)

Compatibility overload for callers that publish one fixed file.


public static PackHttpServer start(Supplier<File> packFileSupplier, int port, String pathPrefix)

Bind and start. Pass port=0 to let the OS pick a free port (useful in tests).

Parameters

packFileSupplier

supplies the file to serve at pathPrefix. The route reads the file fresh on each request, so the URL stays stable across re-mixes. May be null/absent at start time — the route 404s until the file appears.

port

bind port; 0 = OS-picked.

pathPrefix

request path for the pack zip (e.g. /rspm.zip).