public final class TypedResponse<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TypedResponse.Builder<T> |
| Modifier and Type | Method and Description |
|---|---|
T |
body()
if present, the response had a body
|
static <T> TypedResponse.Builder<T> |
builder() |
static <T> TypedResponse.Builder<T> |
builder(Response source) |
Map<String,Collection<String>> |
headers()
Returns a case-insensitive mapping of header names to their values.
|
Request.ProtocolVersion |
protocolVersion()
the HTTP protocol version
|
String |
reason()
Nullable and not set when using http/2
See https://github.com/http2/http2-spec/issues/202
|
Request |
request()
the request that generated this response
|
int |
status()
status code.
|
String |
toString() |
public static <T> TypedResponse.Builder<T> builder()
public static <T> TypedResponse.Builder<T> builder(Response source)
public int status()
200
See rfc2616public String reason()
public Map<String,Collection<String>> headers()
public T body()
public Request request()
public Request.ProtocolVersion protocolVersion()
Copyright © 2012–2024 OpenFeign. All rights reserved.