File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
extensions/amazon-lambda/event-server/src/main/java/io/quarkus/amazon/lambda/runtime Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 17
17
import java .util .concurrent .TimeUnit ;
18
18
import java .util .concurrent .atomic .AtomicBoolean ;
19
19
20
+ import org .eclipse .microprofile .config .Config ;
20
21
import org .eclipse .microprofile .config .ConfigProvider ;
21
22
import org .jboss .logging .Logger ;
22
23
@@ -75,12 +76,16 @@ public void start(int port) {
75
76
HttpServerOptions options = new HttpServerOptions ();
76
77
options .setPort (port == 0 ? -1 : port );
77
78
78
- Optional <MemorySize > maybeMaxHeadersSize = ConfigProvider .getConfig ()
79
+ Config config = ConfigProvider .getConfig ();
80
+ Optional <MemorySize > maybeMaxHeadersSize = config
79
81
.getOptionalValue ("quarkus.http.limits.max-header-size" , MemorySize .class );
80
-
81
82
if (maybeMaxHeadersSize .isPresent ()) {
82
83
options .setMaxHeaderSize (maybeMaxHeadersSize .get ().asBigInteger ().intValueExact ());
83
84
}
85
+ Optional <Boolean > enableCompression = config .getOptionalValue ("quarkus.http.enable-compression" , Boolean .class );
86
+ if (enableCompression .isPresent ()) {
87
+ options .setCompressionSupported (enableCompression .get ());
88
+ }
84
89
85
90
httpServer = vertx .createHttpServer (options );
86
91
router = Router .router (vertx );
You can’t perform that action at this time.
0 commit comments