Creates a new Request Body with charset encoded data. @param data to be encoded. @param charset to encode the data with. if {@literal null}, then data will be considered binary and will not be encoded. @return a new Request.Body instance with the encoded data. @deprecated please use {@link Requ
(byte[] data, Charset charset)
| 579 | * @deprecated please use {@link Request.Body#create(byte[], Charset)} |
| 580 | */ |
| 581 | @Deprecated |
| 582 | public static Body encoded(byte[] data, Charset charset) { |
| 583 | return create(data, charset); |
| 584 | } |
| 585 | |
| 586 | public static Body empty() { |
| 587 | return new Body(); |