public class StreamedResponse extends Response
Response.Code| Modifier and Type | Field and Description |
|---|---|
ByteSource |
body
The source for the body.
|
attributes, headers, statusCode| Modifier and Type | Method and Description |
|---|---|
ByteString |
getBody()
Gets the response body as an immutable
ByteString. |
ByteSource |
getBodySource()
Gets a source for the body.
|
getAttribute, getCharset, getContentType, getHeaders, getHeaderValue, getHeaderValueList, getHeaderValues, getStatusCode, toStringpublic ByteString getBody()
throws java.io.IOException
ResponseByteString.public ByteSource getBodySource()
null if none.