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

Method apply

core/src/test/java/feign/TargetTest.java:62–71  ·  view source on GitHub ↗
(RequestTemplate input)

Source from the content-addressed store, hash-verified

60 new HardCodedTarget<>(TestQuery.class, baseUrl) {
61
62 @Override
63 public Request apply(RequestTemplate input) {
64 Request urlEncoded = super.apply(input);
65 return Request.create(
66 urlEncoded.httpMethod(),
67 urlEncoded.url().replace("%2F", "/"),
68 urlEncoded.headers(),
69 urlEncoded.body(),
70 urlEncoded.charset());
71 }
72 };
73
74 Feign.builder().target(custom).get("slash/foo", "slash/bar");

Callers

nothing calls this directly

Calls 7

createMethod · 0.95
httpMethodMethod · 0.95
urlMethod · 0.95
headersMethod · 0.95
bodyMethod · 0.95
charsetMethod · 0.95
applyMethod · 0.65

Tested by

no test coverage detected