| Package | Description |
|---|---|
| express.middleware |
| Modifier and Type | Method and Description |
|---|---|
FileProviderOptions |
FileProviderOptions.setExtensions(String... extensions)
Set the extension from the file which can be accessed outside.
|
FileProviderOptions |
FileProviderOptions.setFallBackSearching(boolean fallBackSearching)
Activate the fallback-search.
|
FileProviderOptions |
FileProviderOptions.setHandler(HttpRequestHandler handler)
Add an alternate request-handler which will be fired before the file will be send.
|
FileProviderOptions |
FileProviderOptions.setLastModified(boolean lastModified)
Set the Last-Modified header to the last modified date of the file on the OS.
|
FileProviderOptions |
FileProviderOptions.setMaxAge(long maxAge)
Set the max-age property of the Cache-Control header in milliseconds or a string in ms format.
|
| Modifier and Type | Method and Description |
|---|---|
static FileProvider |
Middleware.statics(String directoryPath,
FileProviderOptions staticOptions)
This class serves an entire folder which can contains static file for your
web application, You can use
StaticOptions to add som configurations. |
Copyright © 2019. All rights reserved.