Class CannedResponseHttpClient

java.lang.Object
software.amazon.awssdk.core.warmup.http.CannedResponseHttpClient
All Implemented Interfaces:
AutoCloseable, SdkHttpClient, SdkAutoCloseable

@SdkProtectedApi @Immutable @ThreadSafe public final class CannedResponseHttpClient extends Object implements SdkHttpClient
An SdkHttpClient that returns caller-supplied response bytes without performing any network I/O.

Each ExecutableHttpRequest.call() returns the configured status code and a fresh stream over the response bytes.