@Immutable public final class DefaultSdkHttpResponse extends Object implements SdkHttpResponse
SdkHttpResponse
.Modifier and Type | Method and Description |
---|---|
static DefaultSdkHttpResponse |
from(HttpResponse httpResponse)
Static factory to create an
DefaultSdkHttpResponse from the details in a HttpResponse . |
Map<String,List<String>> |
headers() |
int |
statusCode() |
Optional<String> |
statusText() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
firstMatchingHeader
public static DefaultSdkHttpResponse from(HttpResponse httpResponse)
DefaultSdkHttpResponse
from the details in a HttpResponse
.public Optional<String> statusText()
statusText
in interface SdkHttpResponse
public int statusCode()
statusCode
in interface SdkHttpResponse
Copyright © 2018. All rights reserved.