Package playn.core
Class Net.Response.Binary
java.lang.Object
playn.core.Net.Response
playn.core.Net.Response.Binary
- Enclosing class:
Net.Response
Used to deliver binary response data.
-
Nested Class Summary
Nested classes/interfaces inherited from class playn.core.Net.Response
Net.Response.Binary -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]payload()Returns the response payload as raw bytes.Returns the response payload as a string, decoded using the character set specified in the response's content type.Methods inherited from class playn.core.Net.Response
header, headerNames, headers, payloadImage, responseCode
-
Constructor Details
-
Binary
-
-
Method Details
-
payloadString
Description copied from class:Net.ResponseReturns the response payload as a string, decoded using the character set specified in the response's content type.- Specified by:
payloadStringin classNet.Response
-
payload
public byte[] payload()Description copied from class:Net.ResponseReturns the response payload as raw bytes. Note: this is not available on the HTML backend.- Overrides:
payloadin classNet.Response
-