@Immutable public interface SdkHttpFullResponse extends SdkHttpResponse
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.
|
SdkHttpFullResponse.Builder |
toBuilder() |
isSuccessful, statusCode, statusTextcopyfirstMatchingHeader, headersstatic SdkHttpFullResponse.Builder builder()
builder in interface SdkHttpResponseDefaultSdkHttpFullResponse.SdkHttpFullResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SdkHttpResponse.Builder,SdkHttpResponse>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 © 2019. All rights reserved.