add static asset serving support with configurable options

This commit is contained in:
Relism
2026-04-26 12:27:59 +02:00
parent 6ef11ca595
commit c2e3f98ea2
15 changed files with 697 additions and 19 deletions
@@ -173,4 +173,4 @@ public class FlashContext {
merged.addAll(routeListeners);
return cachedListeners = List.copyOf(merged);
}
}
}
@@ -1,6 +1,12 @@
package dev.relism.http;
import dev.relism.models.Request;
import dev.relism.models.Response;
import dev.relism.routing.GET;
import dev.relism.routing.Route;
import java.nio.charset.StandardCharsets;
import java.util.List;
/**
* Pre-compiled byte representations of standard HTTP status lines.
@@ -97,4 +103,4 @@ public enum HttpStatus {
}
return null;
}
}
}