Skip to content

Commit

Permalink
Manually merged PR, Closing android-async-http#759
Browse files Browse the repository at this point in the history
  • Loading branch information
smarek committed Dec 21, 2014
1 parent 5b1abfb commit 08dc922
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions library/src/main/java/com/loopj/android/http/AsyncHttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 08dc922

Please sign in to comment.