-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2c6551
commit 2db3308
Showing
3 changed files
with
41 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/ResteasyCommonConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package io.quarkus.resteasy.common.runtime; | ||
|
||
import static io.quarkus.runtime.annotations.ConfigPhase.BUILD_AND_RUN_TIME_FIXED; | ||
|
||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
import io.quarkus.runtime.configuration.MemorySize; | ||
import io.smallrye.config.ConfigMapping; | ||
import io.smallrye.config.WithDefault; | ||
|
||
@ConfigRoot(phase = BUILD_AND_RUN_TIME_FIXED) | ||
@ConfigMapping(prefix = "quarkus.resteasy") | ||
public interface ResteasyCommonConfig { | ||
|
||
/** | ||
* Enable gzip support for REST | ||
*/ | ||
ResteasyCommonConfigGzip gzip(); | ||
|
||
interface ResteasyCommonConfigGzip { | ||
/** | ||
* If gzip is enabled | ||
*/ | ||
@WithDefault("false") | ||
boolean enabled(); | ||
|
||
/** | ||
* Maximum deflated file bytes size | ||
* <p> | ||
* If the limit is exceeded, Resteasy will return Response | ||
* with status 413("Request Entity Too Large") | ||
*/ | ||
@WithDefault("10M") | ||
MemorySize maxInput(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters