Skip to content

Commit 1913b2c

Browse files
committed
Made delete(String, RequestParams, AsyncHttpResponseHandler) return a RequestHandle
1 parent 9dfd814 commit 1913b2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/main/java/com/loopj/android/http/AsyncHttpClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,9 +1414,9 @@ public RequestHandle delete(Context context, String url, Header[] headers, Respo
14141414
* @param params additional DELETE parameters or files to send with the request.
14151415
* @param responseHandler the response handler instance that should handle the response.
14161416
*/
1417-
public void delete(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) {
1417+
public RequestHandle delete(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) {
14181418
final HttpDelete delete = new HttpDelete(getUrlWithQueryString(isUrlEncodingEnabled, url, params));
1419-
sendRequest(httpClient, httpContext, delete, null, responseHandler, null);
1419+
return sendRequest(httpClient, httpContext, delete, null, responseHandler, null);
14201420
}
14211421

14221422
/**

0 commit comments

Comments
 (0)