@FunctionalInterface
public static interface RedirectConfig.RedirectRequestTransformer
It can be used to add/remove headers, payload body, or trailers.
| Modifier and Type | Method and Description |
|---|---|
StreamingHttpRequest |
apply(boolean relative,
StreamingHttpRequest previousRequest,
StreamingHttpResponse redirectResponse,
StreamingHttpRequest redirectRequest)
Applies transformations for the pre-initialized redirect request.
|
StreamingHttpRequest apply(boolean relative, StreamingHttpRequest previousRequest, StreamingHttpResponse redirectResponse, StreamingHttpRequest redirectRequest)
relative - if true, the redirect location was identified as relative to the previous requestpreviousRequest - previous request that was redirectedredirectResponse - response to redirectredirectRequest - pre-initialized request to follow the redirectStreamingHttpRequest that will be sent to follow the redirect after all
transformations applied