Skip to content

Commit

Permalink
Fix since tag. use the correct version.
Browse files Browse the repository at this point in the history
  • Loading branch information
arturobernalg committed Nov 15, 2024
1 parent 153155f commit ea08574
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ default TestClientBuilder addExecInterceptorLast(String name, ExecChainHandler i
throw new UnsupportedOperationException("Operation not supported by " + getProtocolLevel());
}

/**
* Configures whether the client builder should wrap requests and responses.
*
* @param noWrap {@code true} to disable wrapping; {@code false} to enable wrapping.
* @return this builder instance.
* @since 5.5
*/
default TestClientBuilder setNoWrap(boolean noWrap) {
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ public TestClient client() throws Exception {
return client;
}

/**
* Creates a configured {@link TestClient} instance.
*
* @param noWrap {@code true} to disable wrapping; {@code false} to enable wrapping.
* @return a {@link TestClient} instance.
* @throws Exception if an error occurs during client creation.
* @since 5.5
*/
public TestClient client(final boolean noWrap) throws Exception {
clientBuilder.setNoWrap(noWrap);
return client();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ public TestClient client() throws Exception {
return testResources.client();
}

/**
* Retrieves a {@link TestClient} instance configured with the specified wrapping option.
*
* @param noWrap {@code true} to disable wrapping; {@code false} to enable wrapping.
* @return a {@link TestClient} instance.
* @throws Exception if an error occurs during client retrieval or configuration.
* @since 5.5
*/
public TestClient client(final boolean noWrap) throws Exception {
return testResources.client(noWrap);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public boolean isChunked() {
* Tests if the entity is to be compressed ({@code true}), or not ({@code false}).
*
* @return {@code true} if entity is to be compressed, {@code false} otherwise.
* @since 5.4
* @since 5.5
*/
public boolean isCompressed() {
return compressed;
Expand All @@ -341,7 +341,7 @@ public boolean isCompressed() {
*
* @param compressed {@code true} if the entity should be compressed, {@code false} otherwise.
* @return this instance.
* @since 5.4
* @since 5.5
*/
public EntityBuilder setCompressed(final boolean compressed) {
this.compressed = compressed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ public final HttpClientBuilder setContentDecoderRegistry(
*
* @param encodings a list of encoding names to support for automatic content compression and decompression
* @return this {@code HttpClientBuilder} instance for method chaining
* @since 5.0
* @since 5.5
*/
public final HttpClientBuilder setEncodings(final List<String> encodings) {
this.encodings = encodings;
Expand All @@ -744,7 +744,7 @@ public final HttpClientBuilder setEncodings(final List<String> encodings) {
*
* @param noWrap if {@code true}, disables the zlib header and trailer in deflate streams.
* @return the updated {@link HttpClientBuilder} instance.
* @since 5.4
* @since 5.5
*/
public final HttpClientBuilder setNoWrap(final boolean noWrap) {
this.noWrap = noWrap;
Expand Down

0 comments on commit ea08574

Please sign in to comment.