public class NettyHttpRedirectController extends Object
| Constructor and Description |
|---|
NettyHttpRedirectController() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
prepareRedirect(ClientRequest request,
ClientResponse response)
Configure the HTTP request after HTTP Redirect response has been received.
|
protected void |
restrictRequestHeaders(ClientRequest request,
ClientResponse response)
RFC 9110 Section 15.4 defines the HTTP headers that should be removed from the redirected request.
|
public boolean prepareRedirect(ClientRequest request, ClientResponse response)
request - The new ClientRequest to be sent to the redirected URI.response - The original HTTP redirect ClientResponse received.true when the new request should be sent.protected void restrictRequestHeaders(ClientRequest request, ClientResponse response)
request - the new request to a new URI location.response - the HTTP redirect response.Copyright © 2007-2024,Oracleand/or its affiliates.All Rights Reserved. Use is subject to license terms.