Java Code Examples for org.apache.http.client.methods.HttpDelete#setHeaders()
The following examples show how to use
org.apache.http.client.methods.HttpDelete#setHeaders() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AsyncHttpClient.java From MiBandDecompiled with Apache License 2.0 | 5 votes |
public RequestHandle delete(Context context, String s, Header aheader[], RequestParams requestparams, ResponseHandlerInterface responsehandlerinterface) { HttpDelete httpdelete = new HttpDelete(getUrlWithQueryString(h, s, requestparams)); if (aheader != null) { httpdelete.setHeaders(aheader); } return sendRequest(c, d, httpdelete, null, responsehandlerinterface, context); }
Example 2
Source File: AsyncHttpClient.java From MiBandDecompiled with Apache License 2.0 | 5 votes |
public RequestHandle delete(Context context, String s, Header aheader[], ResponseHandlerInterface responsehandlerinterface) { HttpDelete httpdelete = new HttpDelete(URI.create(s).normalize()); if (aheader != null) { httpdelete.setHeaders(aheader); } return sendRequest(c, d, httpdelete, null, responsehandlerinterface, context); }
Example 3
Source File: FinalHttp.java From Android-Basics-Codes with Artistic License 2.0 | 4 votes |
public Object deleteSync( String url, Header[] headers) { final HttpDelete delete = new HttpDelete(url); if(headers != null) delete.setHeaders(headers); return sendSyncRequest(httpClient, httpContext, delete, null); }
Example 4
Source File: AsyncHttpClient.java From Mobike with Apache License 2.0 | 2 votes |
/** * Perform getUrl HTTP DELETE request. * * @param context the Android Context which initiated the request. * @param url the URL to send the request to. * @param headers set one-time headers for this request * @param params additional DELETE parameters or files to send along with request * @param responseHandler the response handler instance that should handle the response. * @return RequestHandle of future request process */ public RequestHandle delete(Context context, String url, Header[] headers, RequestParams params, ResponseHandlerInterface responseHandler) { HttpDelete httpDelete = new HttpDelete(getUrlWithQueryString(isUrlEncodingEnabled, url, params)); if (headers != null) httpDelete.setHeaders(headers); return sendRequest(httpClient, httpContext, httpDelete, null, responseHandler, context); }
Example 5
Source File: AsyncHttpClient.java From sealtalk-android with MIT License | 2 votes |
/** * Perform a HTTP DELETE request. * * @param context the Android Context which initiated the request. * @param url the URL to send the request to. * @param headers set one-time headers for this request * @param params additional DELETE parameters or files to send along with request * @param responseHandler the response handler instance that should handle the response. * @return RequestHandle of future request process */ public RequestHandle delete(Context context, String url, Header[] headers, RequestParams params, ResponseHandlerInterface responseHandler) { HttpDelete httpDelete = new HttpDelete(getUrlWithQueryString(isUrlEncodingEnabled, url, params)); if (headers != null) httpDelete.setHeaders(headers); return sendRequest(httpClient, httpContext, httpDelete, null, responseHandler, context); }
Example 6
Source File: AsyncHttpClient.java From android-project-wo2b with Apache License 2.0 | 2 votes |
/** * Perform a HTTP DELETE request. * * @param context the Android Context which initiated the request. * @param url the URL to send the request to. * @param headers set one-time headers for this request * @param params additional DELETE parameters or files to send along with request * @param responseHandler the response handler instance that should handle the response. * @return RequestHandle of future request process */ public RequestHandle delete(Context context, String url, Header[] headers, RequestParams params, ResponseHandlerInterface responseHandler) { HttpDelete httpDelete = new HttpDelete(getUrlWithQueryString(isUrlEncodingEnabled, url, params)); if (headers != null) httpDelete.setHeaders(headers); return sendRequest(httpClient, httpContext, httpDelete, null, responseHandler, context); }
Example 7
Source File: AsyncHttpClient.java From Libraries-for-Android-Developers with MIT License | 2 votes |
/** * Perform a HTTP DELETE request. * * @param context the Android Context which initiated the request. * @param url the URL to send the request to. * @param headers set one-time headers for this request * @param params additional DELETE parameters or files to send along with request * @param responseHandler the response handler instance that should handle the response. * @return RequestHandle of future request process */ public RequestHandle delete(Context context, String url, Header[] headers, RequestParams params, ResponseHandlerInterface responseHandler) { HttpDelete httpDelete = new HttpDelete(getUrlWithQueryString(isUrlEncodingEnabled, url, params)); if (headers != null) httpDelete.setHeaders(headers); return sendRequest(httpClient, httpContext, httpDelete, null, responseHandler, context); }