This commit is contained in:
Greg Wilkins 2014-08-21 09:43:35 +10:00
parent 06cee4b08d
commit 7584488702
1 changed files with 7 additions and 0 deletions

View File

@ -147,6 +147,13 @@ public interface Response
public interface AsyncContentListener extends ResponseListener
{
/**
* Callback method invoked asynchronously when the response content has been received.
*
* @param response the response containing the response line data and the headers
* @param content the content bytes received
* @param callback the callback to call when the content is consumed.
*/
public void onContent(Response response, ByteBuffer content, Callback callback);
}