hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah White <email...@gmail.com>
Subject Re: Entity body for delete
Date Wed, 25 Jul 2012 15:40:23 GMT
I've seen this make sense in various RESTful APIs where you want to DELETE an entity but need
to specify more entity data then can be done so with simply query params. 

-Noah


On Jul 25, 2012, at 4:34 AM, Oleg Kalnichevski wrote:

> On Tue, 2012-07-24 at 12:37 -0400, Subhash Chandran wrote:
>> Hi,
>> 
>> As per the discussion below, the spec seems to support Entity body for
>> Delete:
>> 
>> http://stackoverflow.com/questions/299628/is-an-entity-body-allowed-for-an-http-delete-request
>> 
>> Is there any plans of supporting Entity body for Delete in HTTPClient?
>> 
> 
> I personally think entity enclosing DELETE requests make no sense, but
> this is all it takes to force HttpClient to support them 
> ---
> class EntityEnclosingDelete extends HttpEntityEnclosingRequestBase {
> 
>    @Override
>    public String getMethod() {
>        return "DELETE";
>    }
> 
> }
> ---
> Hope this helps
> 
> Oleg
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message