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)
| 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. |