MCPcopy Index your code
hub / github.com/OpenFeign/feign / decode

Method decode

core/src/test/java/feign/AsyncFeignTest.java:567–579  ·  view source on GitHub ↗
(Response response, Type type)

Source from the content-addressed store, hash-verified

565 .decoder(
566 new StringDecoder() {
567 @Override
568 public Object decode(Response response, Type type) throws IOException {
569 String string = super.decode(response, type).toString();
570 if ("retry!".equals(string)) {
571 throw new RetryableException(
572 response.status(),
573 string,
574 HttpMethod.POST,
575 NON_RETRYABLE,
576 response.request());
577 }
578 return string;
579 }
580 })
581 .target("http://localhost:" + server.getPort());
582

Callers

nothing calls this directly

Calls 5

decodeMethod · 0.65
toStringMethod · 0.45
equalsMethod · 0.45
statusMethod · 0.45
requestMethod · 0.45

Tested by

no test coverage detected