public abstract static class Net.Response.Binary extends Net.Response
Net.Response.Binary| Constructor and Description |
|---|
Binary(int responseCode,
byte[] payload,
java.lang.String encoding) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
payload()
Returns the response payload as raw bytes.
|
java.lang.String |
payloadString()
Returns the response payload as a string, decoded using the character set specified in the
response's content type.
|
header, headerNames, headers, payloadImage, responseCodepublic Binary(int responseCode,
byte[] payload,
java.lang.String encoding)
public java.lang.String payloadString()
Net.ResponsepayloadString in class Net.Responsepublic byte[] payload()
Net.Responsepayload in class Net.ResponseCopyright © 2018. All Rights Reserved.