public final class Response extends Object implements Closeable
Modifier and Type | Class and Description |
---|---|
static interface |
Response.Body |
static class |
Response.Builder |
Modifier and Type | Method and Description |
---|---|
Response.Body |
body()
if present, the response had a body
|
static Response.Builder |
builder() |
void |
close() |
Map<String,Collection<String>> |
headers()
Returns a case-insensitive mapping of header names to their values.
|
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.
|
Response.Builder |
toBuilder() |
String |
toString() |
public Response.Builder toBuilder()
public static Response.Builder builder()
public int status()
200
See rfc2616public String reason()
public Map<String,Collection<String>> headers()
public Response.Body body()
public Request request()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2012–2020 OpenFeign. All rights reserved.