Class RedirectingHttpRequesterFilter

java.lang.Object
io.servicetalk.http.utils.RedirectingHttpRequesterFilter
All Implemented Interfaces:
HttpExecutionStrategyInfluencer, StreamingHttpClientFilterFactory, StreamingHttpConnectionFilterFactory, ExecutionStrategyInfluencer<HttpExecutionStrategy>

public final class RedirectingHttpRequesterFilter extends Object implements StreamingHttpClientFilterFactory, StreamingHttpConnectionFilterFactory
An HTTP request filter that performs automatic redirection if a client receives 3XX status code in the response.

Notes:

  • This implementation will not parse a payload for 300 (Multiple Choices) response code, if a preferred choice's URI reference is not returned in the Location header.
  • Depending on its parameters and context: HttpClient or HttpConnection, this filter may be limited to automatically following relative redirects only.
  • This implementation will automatically redirect headers and message body for relative locations.
  • For security reasons, this implementation will NOT automatically redirect headers and message body for non-relative locations. Use RedirectConfig to opt-in for redirect of requires request components.