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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()voidclose()prepareRequest(HttpExecuteRequest request)
-
Method Details
-
builder
-
prepareRequest
- Specified by:
prepareRequestin interfaceSdkHttpClient
-
clientName
- Specified by:
clientNamein interfaceSdkHttpClient
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSdkAutoCloseable
-