public interface StaticFilesHandler
| Modifier and Type | Method and Description |
|---|---|
InputStream |
serve(String path,
Map<String,String> headers)
Serve the request file if found, return code
null is file not found. |
@Nullable InputStream serve(String path, Map<String,String> headers)
null is file not found.path - path of the reuqested file.headers - list of headers to append to the Http response.null if the file is not found.