Skip to content

Commit cb96f95

Browse files
committed
chore(doc): Add Javadoc to DecompressingBodyHandlerBuilder#lenient method.
1 parent 132eead commit cb96f95

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/io/github/nstdio/http/ext/BodyHandlers.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ public DecompressingBodyHandlerBuilder failOnUnknownDirectives(boolean failOnUnk
103103
return this;
104104
}
105105

106+
/**
107+
* Toggles both {@link #failOnUnsupportedDirectives} and {@link #failOnUnknownDirectives}.
108+
*
109+
* @param lenient The lenient mode.
110+
*
111+
* @return this for fluent chaining.
112+
*/
106113
public DecompressingBodyHandlerBuilder lenient(boolean lenient) {
107114
return failOnUnsupportedDirectives(!lenient)
108115
.failOnUnsupportedDirectives(!lenient);

0 commit comments

Comments
 (0)