public interface ByteData extends UploadData
Modifier and Type | Method and Description |
---|---|
default byte[] |
bytes()
Returns an array containing the upload data bytes of the associated URL request.
|
static ByteData |
of(byte[] data)
Returns an instance of
ByteData with the given upload data bytes. |
static ByteData |
of(java.lang.String data)
Returns an instance of
ByteData with the given upload data bytes obtained from the
data string. |
static ByteData of(java.lang.String data)
ByteData
with the given upload data bytes obtained from the
data
string.static ByteData of(byte[] data)
ByteData
with the given upload data
bytes.default byte[] bytes()
UploadData
If the upload data is constructed manually and is not associated with a URL request, returns an empty array.
bytes
in interface UploadData