public interface ResponseMapper
new ResponseMapper() {
@Override
public Response map(Response response, Type type) {
try {
return response
.toBuilder()
.body(Util.toString(response.body().asReader()).toUpperCase().getBytes())
.build();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
};
Modifier and Type | Method and Description |
---|---|
Response |
map(Response response,
Type type) |
Copyright © 2012–2020 OpenFeign. All rights reserved.