From 08dc9221f0e8785ed767f443a16fa59835bced1c Mon Sep 17 00:00:00 2001 From: mareksebera Date: Sun, 21 Dec 2014 14:51:09 +0100 Subject: [PATCH] Manually merged PR, Closing #759 --- .../java/com/loopj/android/http/AsyncHttpClient.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/library/src/main/java/com/loopj/android/http/AsyncHttpClient.java b/library/src/main/java/com/loopj/android/http/AsyncHttpClient.java index e0222ac95..26103183f 100755 --- a/library/src/main/java/com/loopj/android/http/AsyncHttpClient.java +++ b/library/src/main/java/com/loopj/android/http/AsyncHttpClient.java @@ -1190,6 +1190,18 @@ public RequestHandle delete(Context context, String url, Header[] headers, Respo return sendRequest(httpClient, httpContext, delete, null, responseHandler, context); } + /** + * Perform a HTTP DELETE request. + * + * @param url the URL to send the request to. + * @param params additional DELETE parameters or files to send with the request. + * @param responseHandler the response handler instance that should handle the response. + */ + public void delete(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) { + final HttpDelete delete = new HttpDelete(getUrlWithQueryString(isUrlEncodingEnabled, url, params)); + sendRequest(httpClient, httpContext, delete, null, responseHandler, null); + } + /** * Perform a HTTP DELETE request. *