Package software.amazon.awssdk.http
Class HttpExecuteResponse
- java.lang.Object
-
- software.amazon.awssdk.http.HttpExecuteResponse
-
public class HttpExecuteResponse extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
HttpExecuteResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpExecuteResponse.Builder
builder()
SdkHttpResponse
httpResponse()
Optional<AbortableInputStream>
responseBody()
Get theAbortableInputStream
associated with this response.
-
-
-
Method Detail
-
httpResponse
public SdkHttpResponse httpResponse()
- Returns:
- The HTTP response.
-
responseBody
public Optional<AbortableInputStream> responseBody()
Get theAbortableInputStream
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.
- Returns:
- An
Optional
containing theAbortableInputStream
if available.
-
builder
public static HttpExecuteResponse.Builder builder()
-
-