Skip to content

Made delete(url, params, handler return a RequestHandle. #967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 23, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1413,10 +1413,11 @@ public RequestHandle delete(Context context, String url, Header[] headers, Respo
* @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.
* @return RequestHandle of future request process
*/
public void delete(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) {
public RequestHandle delete(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) {
final HttpDelete delete = new HttpDelete(getUrlWithQueryString(isUrlEncodingEnabled, url, params));
sendRequest(httpClient, httpContext, delete, null, responseHandler, null);
return sendRequest(httpClient, httpContext, delete, null, responseHandler, null);
}

/**
Expand Down