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

Method decode

core/src/test/java/feign/FeignTest.java:557–569  ·  view source on GitHub ↗
(Response response, Type type)

Source from the content-addressed store, hash-verified

555 .decoder(
556 new StringDecoder() {
557 @Override
558 public Object decode(Response response, Type type) throws IOException {
559 String string = super.decode(response, type).toString();
560 if ("retry!".equals(string)) {
561 throw new RetryableException(
562 response.status(),
563 string,
564 HttpMethod.POST,
565 NON_RETRYABLE,
566 response.request());
567 }
568 return string;
569 }
570 })
571 .target("http://localhost:" + server.getPort());
572

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