The methods of this type are not additive. That is, successive calls to {@link #bytes(byte[])} and other methods will not add to the request body.Rather, they will replace the content specified by previous method calls.
It is generally best to provide the body content in the format that you have it in. That is, if you already have the desired body content as a {@link String}, use the {@link #text(CharSequence)} method.If you already have the desired body content as a {@code byte[]}, use the {@link #bytes(byte[])} method.
|
|