Skip to content

Commit 08dc922

Browse files
committed
Manually merged PR, Closing android-async-http#759
1 parent 5b1abfb commit 08dc922

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,18 @@ public RequestHandle delete(Context context, String url, Header[] headers, Respo
11901190
return sendRequest(httpClient, httpContext, delete, null, responseHandler, context);
11911191
}
11921192

1193+
/**
1194+
* Perform a HTTP DELETE request.
1195+
*
1196+
* @param url the URL to send the request to.
1197+
* @param params additional DELETE parameters or files to send with the request.
1198+
* @param responseHandler the response handler instance that should handle the response.
1199+
*/
1200+
public void delete(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) {
1201+
final HttpDelete delete = new HttpDelete(getUrlWithQueryString(isUrlEncodingEnabled, url, params));
1202+
sendRequest(httpClient, httpContext, delete, null, responseHandler, null);
1203+
}
1204+
11931205
/**
11941206
* Perform a HTTP DELETE request.
11951207
*

0 commit comments

Comments
 (0)