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 Routing.singlePageApplication plugin.
A config for serving static content
Properties
Checks if response body compression is suppressed for this ApplicationCall.
Base package for relative resources calculations for static content
Attribute to assign the path of a static file served in the response. The main use of this attribute is to indicate to subsequent interceptors that a static file was served via the ApplicationCall.isStaticContent()
extension function.
Base folder for relative files calculations for static content
Attribute that could be added to an application call to prevent its response from being compressed
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
Creates an instance of LocalPathContent for a path designated by relativePath in a baseDir
Creates an instance of LocalPathContent for a path 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 RoutingRoot 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 RoutingRoot to serve fileSystem as static content. All paths inside basePath will be accessible recursively at "remotePath/path/to/resource". If requested path doesn't exist and index is not null
, then response will be index path in the requested package.
Sets up RoutingRoot 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.
Sets up RoutingRoot to serve contents of zip as static content. All paths inside basePath will be accessible recursively at "remotePath/path/to/resource". If requested path doesn't exist and index is not null
, then response will be index path in the requested package.
Suppress response body compression plugin for this ApplicationCall.
Default outgoing content transformation