add static asset serving support with configurable options
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user