Package | Description |
---|---|
ratpack.groovy.test.handling | |
ratpack.launch |
Classes used to bootstrap a Ratpack application.
|
ratpack.test.handling |
Modifier and Type | Method and Description |
---|---|
GroovyRequestFixture |
GroovyRequestFixture.launchConfig(Action<? super LaunchConfigBuilder> action) |
GroovyRequestFixture |
GroovyRequestFixture.launchConfig(Path baseDir,
Action<? super LaunchConfigBuilder> action) |
Modifier and Type | Method and Description |
---|---|
LaunchConfigBuilder |
LaunchConfigBuilder.address(InetAddress address)
Sets the address to bind to.
|
static LaunchConfigBuilder |
LaunchConfigBuilder.baseDir(File baseDir)
Create a new builder, using the given file as the base dir.
|
static LaunchConfigBuilder |
LaunchConfigBuilder.baseDir(Path baseDir)
Create a new builder, using the given file as the base dir.
|
LaunchConfigBuilder |
LaunchConfigBuilder.bufferAllocator(ByteBufAllocator byteBufAllocator)
The allocator to use when creating buffers in the application.
|
LaunchConfigBuilder |
LaunchConfigBuilder.compressionBlackListMimeTypes(List<String> mimeTypes)
Adds the given values as non-compressible mime types.
|
LaunchConfigBuilder |
LaunchConfigBuilder.compressionBlackListMimeTypes(String... mimeTypes)
Adds the given values as non-compressible mime types.
|
LaunchConfigBuilder |
LaunchConfigBuilder.compressionMinSize(long compressionMinSize)
The minimum size at which responses should be compressed, in bytes.
|
LaunchConfigBuilder |
LaunchConfigBuilder.compressionWhiteListMimeTypes(List<String> mimeTypes)
Adds the given values as compressible mime types.
|
LaunchConfigBuilder |
LaunchConfigBuilder.compressionWhiteListMimeTypes(String... mimeTypes)
Adds the given values as compressible mime types.
|
LaunchConfigBuilder |
LaunchConfigBuilder.compressResponses(boolean compressResponses)
Whether to compress responses.
|
LaunchConfigBuilder |
LaunchConfigBuilder.development(boolean development)
Whether or not the application is "development".
|
LaunchConfigBuilder |
LaunchConfigBuilder.indexFiles(List<String> indexFiles)
Adds the given values as potential index file names.
|
LaunchConfigBuilder |
LaunchConfigBuilder.indexFiles(String... indexFiles)
Adds the given values as potential index file names.
|
LaunchConfigBuilder |
LaunchConfigBuilder.maxContentLength(int maxContentLength)
The max number of bytes a request body can be.
|
static LaunchConfigBuilder |
LaunchConfigBuilder.noBaseDir()
Create a new builder, with no base dir.
|
LaunchConfigBuilder |
LaunchConfigBuilder.other(Map<String,String> other)
Add some "other" properties.
|
LaunchConfigBuilder |
LaunchConfigBuilder.other(String key,
String value)
Add an "other" property.
|
LaunchConfigBuilder |
LaunchConfigBuilder.port(int port)
Sets the port to bind to.
|
LaunchConfigBuilder |
LaunchConfigBuilder.publicAddress(URI publicAddress)
The public address of the application.
|
LaunchConfigBuilder |
LaunchConfigBuilder.ssl(SSLContext sslContext)
The SSL context to use if the application serves content over HTTPS.
|
LaunchConfigBuilder |
LaunchConfigBuilder.threads(int threads)
The number of threads to use.
|
LaunchConfigBuilder |
LaunchConfigBuilder.timeResponses(boolean timeResponses)
Whether to time responses.
|
Modifier and Type | Method and Description |
---|---|
RequestFixture |
RequestFixture.launchConfig(Action<? super LaunchConfigBuilder> action)
Configures the launch config to have no base dir and given configuration.
|
RequestFixture |
RequestFixtureAction.launchConfig(Action<? super LaunchConfigBuilder> action)
Configures the launch config to have no base dir and given configuration.
|
RequestFixture |
RequestFixture.launchConfig(Path baseDir,
Action<? super LaunchConfigBuilder> action)
Configures the launch config to have the given base dir and given configuration.
|
RequestFixture |
RequestFixtureAction.launchConfig(Path baseDir,
Action<? super LaunchConfigBuilder> action)
Configures the launch config to have the given base dir and given configuration.
|