public class HttpExecuteResponse extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
HttpExecuteResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static HttpExecuteResponse.Builder |
builder() |
SdkHttpResponse |
httpResponse() |
Optional<AbortableInputStream> |
responseBody()
/** Get the
AbortableInputStream associated with this response. |
public SdkHttpResponse httpResponse()
public Optional<AbortableInputStream> responseBody()
AbortableInputStream associated with this response.
Always close the "responseBody" input stream to release the underlying HTTP connection. Even for error responses, the SDK creates an input stream for reading error data. It is essential to close the input stream in the "responseBody" attribute for both success and error cases.
Optional containing the AbortableInputStream if available.public static HttpExecuteResponse.Builder builder()
Copyright © 2023. All rights reserved.