@Immutable public interface SdkHttpResponse extends ToCopyableBuilder<SdkHttpResponse.Builder,SdkHttpResponse>, SdkHttpHeaders, Serializable
SdkHttpFullResponse
should be used when access to a
response body stream is required.Modifier and Type | Interface and Description |
---|---|
static interface |
SdkHttpResponse.Builder
Builder for a
DefaultSdkHttpFullResponse . |
Modifier and Type | Method and Description |
---|---|
static SdkHttpFullResponse.Builder |
builder() |
default boolean |
isSuccessful()
If we get back any 2xx status code, then we know we should treat the service call as successful.
|
int |
statusCode()
Returns the HTTP status code (eg.
|
Optional<String> |
statusText()
Returns the HTTP status text returned by the service.
|
copy, toBuilder
firstMatchingHeader, headers
static SdkHttpFullResponse.Builder builder()
DefaultSdkHttpFullResponse
.Optional<String> statusText()
If this was not provided by the service, empty will be returned.
int statusCode()
This will always be positive.
default boolean isSuccessful()
Copyright © 2021. All rights reserved.