We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DecompressingBodyHandlerBuilder#lenient
1 parent 132eead commit cb96f95Copy full SHA for cb96f95
src/main/java/io/github/nstdio/http/ext/BodyHandlers.java
@@ -103,6 +103,13 @@ public DecompressingBodyHandlerBuilder failOnUnknownDirectives(boolean failOnUnk
103
return this;
104
}
105
106
+ /**
107
+ * Toggles both {@link #failOnUnsupportedDirectives} and {@link #failOnUnknownDirectives}.
108
+ *
109
+ * @param lenient The lenient mode.
110
111
+ * @return this for fluent chaining.
112
+ */
113
public DecompressingBodyHandlerBuilder lenient(boolean lenient) {
114
return failOnUnsupportedDirectives(!lenient)
115
.failOnUnsupportedDirectives(!lenient);
0 commit comments