You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client/src/main/java/org/asynchttpclient/Response.java
+9-4
Original file line number
Diff line number
Diff line change
@@ -147,10 +147,15 @@ public interface Response {
147
147
booleanhasResponseHeaders();
148
148
149
149
/**
150
-
* Return true if the response's body has been computed by an {@link AsyncHandler}. It will return false if the either {@link AsyncHandler#onStatusReceived(HttpResponseStatus)}
151
-
* or {@link AsyncHandler#onHeadersReceived(HttpHeaders)} returned {@link AsyncHandler.State#ABORT}
152
-
*
153
-
* @return true if the response's body has been computed by an {@link AsyncHandler}
150
+
* Return true if the response's body has been computed by an {@link AsyncHandler}.
151
+
* It will return false if:
152
+
* <ul>
153
+
* <li>either the {@link AsyncHandler#onStatusReceived(HttpResponseStatus)} returned {@link AsyncHandler.State#ABORT}</li>
154
+
* <li>or {@link AsyncHandler#onHeadersReceived(HttpHeaders)} returned {@link AsyncHandler.State#ABORT}</li>
155
+
* <li>response body was empty</li>
156
+
* </ul>
157
+
*
158
+
* @return true if the response's body has been computed by an {@link AsyncHandler} to new empty bytes
0 commit comments