Skip to content

Commit 2e99c43

Browse files
committed
chore(implementation)!: use Jetty-12 core without servlets
Port the invoker to upgrade to Eclipse Jetty-12 version 12. Specifically using the new core APIs of Eclipse Jetty-12 that allow the overhead of a Servlet container to be avoided. Several optimizations are included, including the optimization that small writes can be buffered in such a way to avoid chunked responses when possible. BREAKING CHANGE: use Java 17 or above, as required by Eclipse Jetty-12.
1 parent 1c14274 commit 2e99c43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

invoker/core/src/test/java/com/google/cloud/functions/invoker/IntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ public void helloWorld() throws Exception {
255255
fullTarget("HelloWorld"),
256256
ImmutableList.of(
257257
TestCase.builder()
258-
.setExpectedResponseText("hello\n")
259-
.setHttpHeaders(ImmutableMap.of(
258+
.setExpectedResponseHeaders(ImmutableMap.of(
260259
"Content-Length", "*"))
260+
.setExpectedResponseText("hello\n")
261261
.build(),
262262
FAVICON_TEST_CASE,
263263
ROBOTS_TXT_TEST_CASE));

0 commit comments

Comments
 (0)