Package-level declarations
Types
Supported pre compressed file types and associated extensions
Represents a simple status code response with no content
Represents an OutgoingContent for a resource inside a Jar file
OutgoingContent representing a local file with a specified contentType, expires date and caching
Configuration for the Route.singlePageApplication plugin.
A config for serving static content
Functions
Creates CachingOptions instance with ZonedDateTime expiration time
Specifies resource as a default resources to serve when folder is requested
Registers a block in ignoredFiles returns true if path should be ignored.
Checks if the application call is requesting static content
Construct LastModifiedVersion version from a FileTime instance
Construct LastModifiedVersion version from a ZonedDateTime instance
Construct LastModifiedVersion version from a Long instance
Creates an instance of LocalFileContent for a file designated by relativePath in a baseDir
Support pre-compressed files and resources
Sets up routing to serve resource as remotePath in resourcePackage
Attempt to find a local file or a file inside of zip. This is not required but very good to have to improve performance and unnecessary java.io.InputStream creation.
Sets up routing to serve all resources in resourcePackage
Serves a single-page application. You can learn more from Serving single-page applications.
Sets up Routing to serve static files. All files inside dir will be accessible recursively at "remotePath/path/to/file". If the requested file is a directory and index is not null
, then response will be index file in the requested directory.
Sets up Routing to serve resources as static content. All resources inside basePackage will be accessible recursively at "remotePath/path/to/resource". If requested resource doesn't exist and index is not null
, then response will be index resource in the requested package.
Default outgoing content transformation