Package | Description |
---|---|
ratpack.file |
Types for dealing with the file system and serving files.
|
ratpack.groovy.handling |
Groovy specific extensions to classes in the
ratpack.handling package. |
ratpack.handling |
The handling of application requests.
|
Modifier and Type | Method and Description |
---|---|
FileHandlerSpec |
FileHandlerSpec.dir(String dir)
Specifies the file system path to the files.
|
default FileHandlerSpec |
FileHandlerSpec.files(String path)
A convenience method that specifies both request path and file system path bindings for serving files.
|
FileHandlerSpec |
FileHandlerSpec.indexFiles(String... indexFiles)
The files that should be used when a request is made for a directory.
|
FileHandlerSpec |
FileHandlerSpec.path(String path)
Specifies the request path to bind to for serving files.
|
Modifier and Type | Method and Description |
---|---|
default GroovyChain |
GroovyChain.files(Action<? super FileHandlerSpec> config)
Adds a handler that serves files from the file system.
|
Modifier and Type | Method and Description |
---|---|
default Chain |
Chain.files(Action<? super FileHandlerSpec> config)
Adds a handler that serves files from the file system.
|
static Handler |
Handlers.files(ServerConfig serverConfig,
Action<? super FileHandlerSpec> config)
Creates a handler that serves files from the file system.
|