Skip to content

Commit bbcde95

Browse files
committed
docs: Clarify that the gzip snippets show overrides, not defaults
Both builder examples put the default in a comment beside a different literal, so the comment read as if it were annotating the value in the call. Say plainly that the call raises the default.
1 parent 2a454e0 commit bbcde95

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ Inflation runs under a ceiling, because a few compressed kilobytes can expand in
480480
OpenApiServer.builder()
481481
.spec(spec)
482482
.handlers(handlers)
483-
.maxDecompressedRequestBytes(32 * 1024 * 1024) // default 10 MiB; over it, 413
483+
.maxDecompressedRequestBytes(32 * 1024 * 1024) // raises the 10 MiB default; over it, 413
484484
.build();
485485
```
486486

@@ -497,7 +497,7 @@ coded, and neither is `text/event-stream`, which has to stay unbuffered.
497497
OpenApiServer.builder()
498498
.spec(spec)
499499
.handlers(handlers)
500-
.minimumGzipResponseBytes(4096) // default 1024; 0 compresses everything compressible
500+
.minimumGzipResponseBytes(4096) // raises the 1 KiB default; 0 compresses every eligible body
501501
.build();
502502
```
503503

0 commit comments

Comments
 (0)