Interface HttpClient.RedirectSendHandler

All Superinterfaces:
BiFunction<HttpClientRequest,NettyOutbound,Publisher<Void>>
Enclosing class:
HttpClient

public static interface HttpClient.RedirectSendHandler extends BiFunction<HttpClientRequest,NettyOutbound,Publisher<Void>>
Marker interface for use with HttpClient.RequestSender.send(BiFunction).

When the BiFunction passed into send is an implementation of this interface, it indicates it differentiates between original and redirect requests, e.g. as a result of enabling HttpClient.followRedirect(boolean), and is capable of applying separate logic for each individually. Redirect scenarios may be detected by checking HttpClientInfos.redirectedFrom().

When the BiFunction passed in is not an implementation of this interface, it indicates it does not differentiate between original and redirect requests, and applies the same initialization logic.

Since:
0.9.5