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

Method create

core/src/main/java/feign/Request.java:92–102  ·  view source on GitHub ↗

No parameters can be null except body and charset. All parameters must be effectively immutable, via safe copies, not mutating or otherwise. @deprecated #create(HttpMethod, String, Map, byte[], Charset)

(
      String method,
      String url,
      Map<String, Collection<String>> headers,
      byte[] body,
      Charset charset)

Source from the content-addressed store, hash-verified

90 * @deprecated {@link #create(HttpMethod, String, Map, byte[], Charset)}
91 */
92 @Deprecated
93 public static Request create(
94 String method,
95 String url,
96 Map<String, Collection<String>> headers,
97 byte[] body,
98 Charset charset) {
99 checkNotNull(method, "httpMethod of %s", method);
100 final HttpMethod httpMethod = HttpMethod.valueOf(method.toUpperCase());
101 return create(httpMethod, url, headers, body, charset, null);
102 }
103
104 /**
105 * Builds a Request. All parameters must be effectively immutable, via safe copies.

Callers 15

decodesMethod · 0.95
nullBodyDecodesToNullMethod · 0.95
customDecoderMethod · 0.95
customObjectDecoderMethod · 0.95
decodeTestMethod · 0.95
decodesSoapMethod · 0.95

Calls 2

createMethod · 0.95
checkNotNullMethod · 0.80

Tested by 15

decodesMethod · 0.76
nullBodyDecodesToNullMethod · 0.76
customDecoderMethod · 0.76
customObjectDecoderMethod · 0.76
decodeTestMethod · 0.76
decodesSoapMethod · 0.76