@Immutable public class SdkHttpMetadata extends Object
Modifier and Type | Method and Description |
---|---|
static SdkHttpMetadata |
from(HttpResponse httpResponse)
Static factory to create an
SdkHttpMetadata from the details in a HttpResponse . |
Map<String,List<String>> |
getAllHttpHeaders()
Returns all the headers sent in a response.
|
Map<String,String> |
getHttpHeaders()
Deprecated.
|
int |
getHttpStatusCode() |
public Map<String,String> getHttpHeaders()
SdkHttpMetadata.getAllHttpHeaders()
public Map<String,List<String>> getAllHttpHeaders()
SdkHttpMetadata.getHttpHeaders()
, this returns all the values given for a
field-name, rather than the last seen value.public int getHttpStatusCode()
public static SdkHttpMetadata from(HttpResponse httpResponse)
SdkHttpMetadata
from the details in a HttpResponse
.Copyright © 2024. All rights reserved.