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

Method body

core/src/main/java/feign/RequestTemplate.java:887–890  ·  view source on GitHub ↗

Sets the Body and Charset for this request. @param data to send, can be null. @param charset of the encoded data. @return a RequestTemplate for chaining.

(byte[] data, Charset charset)

Source from the content-addressed store, hash-verified

885 * @return a RequestTemplate for chaining.
886 */
887 public RequestTemplate body(byte[] data, Charset charset) {
888 this.body(Request.Body.create(data, charset));
889 return this;
890 }
891
892 /**
893 * Set the Body for this request. Charset is assumed to be UTF_8. Data must be encoded.

Calls 4

headerMethod · 0.95
asBytesMethod · 0.80
createMethod · 0.65
lengthMethod · 0.65