Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2902 from crankydillo/reactor-netty-client-provid…
…er-fix Avoid a payload byte[] copy when using reactor-netty HTTP client engine
- Loading branch information
Showing
6 changed files
with
681 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
.../src/main/java/org/jboss/resteasy/client/jaxrs/internal/TrackingClientRequestHeaders.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.jboss.resteasy.client.jaxrs.internal; | ||
|
||
import org.jboss.resteasy.util.CaseInsensitiveMap; | ||
|
||
/** | ||
* An extension of ClientRequestHeaders that helps decorate the headers with a TrackingMap. | ||
*/ | ||
public class TrackingClientRequestHeaders extends ClientRequestHeaders { | ||
|
||
public TrackingClientRequestHeaders(final ClientConfiguration configuration, final CaseInsensitiveMap<Object> headers) { | ||
super(configuration); | ||
this.headers = new TrackingMap<>(headers); | ||
} | ||
|
||
@Override | ||
public TrackingMap<Object> getHeaders() { | ||
return (TrackingMap<Object>) super.getHeaders(); | ||
} | ||
} |
Oops, something went wrong.