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, responseCode
public Binary(int responseCode, byte[] payload, java.lang.String encoding)
public java.lang.String payloadString()
Net.Response
payloadString
in class Net.Response
public byte[] payload()
Net.Response
payload
in class Net.Response
Copyright © 2019. All Rights Reserved.