Skip to content

Commit

Permalink
chore(doc): Add Javadoc to DecompressingBodyHandlerBuilder#lenient
Browse files Browse the repository at this point in the history
…method.
  • Loading branch information
nstdio committed Jul 15, 2022
1 parent 132eead commit cb96f95
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/io/github/nstdio/http/ext/BodyHandlers.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ public DecompressingBodyHandlerBuilder failOnUnknownDirectives(boolean failOnUnk
return this;
}

/**
* Toggles both {@link #failOnUnsupportedDirectives} and {@link #failOnUnknownDirectives}.
*
* @param lenient The lenient mode.
*
* @return this for fluent chaining.
*/
public DecompressingBodyHandlerBuilder lenient(boolean lenient) {
return failOnUnsupportedDirectives(!lenient)
.failOnUnsupportedDirectives(!lenient);
Expand Down

0 comments on commit cb96f95

Please sign in to comment.