Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 688 Bytes

File metadata and controls

21 lines (15 loc) · 688 Bytes

#AsyncHttpClient Example DELETE

###Example DELETE

	SyncHttpClient<JsonElement> client = new SyncHttpClient<JsonElement>("http://example.com");
	JsonElement response = client.delete("api/v1/", new JsonResponseHandler());

###Example DELETE with parameters and headers

	SyncHttpClient<JsonElement> client = new SyncHttpClient<JsonElement>("http://example.com");
	List<NameValuePair> params = new ArrayList<NameValuePair>();
	params.add(new BasicNameValuePair("key", "value"));

	List<Header> headers = new ArrayList<Header>();
	headers.add(new BasicHeader("1", "2"));

	JsonElement response = client.delete("api/v1/", params, headers, new JsonResponseHandler());