@Immutable public interface SdkHttpFullResponse extends SdkHttpResponse, ToCopyableBuilder<SdkHttpFullResponse.Builder,SdkHttpFullResponse>
All implementations of this interface MUST be immutable. Instead of implementing this interface, consider using
builder()
to create an instance.
Modifier and Type | Interface and Description |
---|---|
static interface |
SdkHttpFullResponse.Builder
Builder for a
DefaultSdkHttpFullResponse . |
Modifier and Type | Method and Description |
---|---|
static SdkHttpFullResponse.Builder |
builder() |
Optional<AbortableInputStream> |
content()
Returns the optional stream containing the payload data returned by the service.
|
statusCode, statusText
firstMatchingHeader, headers
copy, toBuilder
static SdkHttpFullResponse.Builder builder()
DefaultSdkHttpFullResponse
.Optional<AbortableInputStream> content()
AbortableInputStream
is returned instead of an InputStream
. This allows the stream to be aborted before all content is read, which
usually means destroying the underlying HTTP connection. This may be implemented differently in other HTTP implementations.
When the response does not include payload data, this will return Optional.empty()
.
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.