public class Response extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Response.Builder
Response builder.
|
Modifier and Type | Method and Description |
---|---|
static Response.Builder |
builder() |
String |
cookie(String key) |
Map<String,Object> |
cookies() |
static Response.Builder |
from(Response response) |
Body |
getBody() |
String |
header(String key) |
Map<String,Object> |
headers() |
int |
statusCode() |
public int statusCode()
public String header(String key)
key
- header keypublic String cookie(String key)
key
- cookie keypublic Body getBody()
public static Response.Builder builder()
public static Response.Builder from(Response response)
response
- template of a responseCopyright © 2016–2022 Spring. All rights reserved.