Class EnforceSequentialModeRequesterFilter

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

public final class EnforceSequentialModeRequesterFilter extends Object implements StreamingHttpClientFilterFactory, StreamingHttpConnectionFilterFactory
Enforces sequential behavior of the client, deferring return of the response until after the request payload body is sent.

ServiceTalk transport is full-duplex, meaning that a StreamingHttpRequester or BlockingStreamingHttpRequester can read the response before or while it is still sending a request payload body. In some scenarios, and for backward compatibility with legacy HTTP clients, users may have expectations of a sequential execution of the request and response. This filter helps to enforce that behavior.